Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by glalsop

  1. glalsop

    Access Reports Vs Crystal Reports

    Some things you might consider: Do you already have Crystal, or would you need to purchase it? If you already have it, then try both solutions. I think that you would find Access more suitable for some tasks and Crystal more suitable for other tasks. I think that you would also find that either...
  2. glalsop

    select all field on form in code

    Something like this: Dim ctl As Control For Each ctl In Me.Controls 'Do stuff to controls Next ctl -Gary
  3. glalsop

    Report problem

    Have a look here: faq703-1594 -Gary
  4. glalsop

    Replacing openargs

    Access 2000 has OpenArgs for forms, it is not available for use in reports until XP. Perhaps consider a hidden text box on the form that opens the report, or a global variable. -Gary
  5. glalsop

    need to requery listbox on different tab

    The controls on a tab control all belong to the same form, so you can reference them as if they were on the same page: Me.lstListBox.RowSource = "" -Gary
  6. glalsop

    Asking for a parameter I previously deleted

    When this happens to me, I usually find that I had a sort on the field and didn't remove it. Perhaps check there first. -Gary
  7. glalsop

    Criteria for report built with sub reports

    The easiest solution might be to have the user enter the dates on a form and then reference the form fields in all of your queries. -Gary
  8. glalsop

    Query takes forever on MSSQL Backend

    To elaborate on the comments of lespaul and cmmrfrds: You generally will not see the speed of record retrieval improve much if you create queries based on tables that are LINKED to a SQL Server database from an Access front end. However, oftentimes the retrieval rate will improve dramatically...
  9. glalsop

    Parse report for faxing

    Are you using the DoCmd.OpenReport method? If so, you just need to set up a loop that iterates once for each community and prints a report using the Where parameter of the OpenReport method. Something like this: Dim dbsCurr as DAO.Database Dim rsCommunities as DAO.Recordset Set dbsCurr =...
  10. glalsop

    Open windows explorer from form

    As you are passing a string, enclose the parameter in quotes: Dim dirPath As String dirPath = Pickfolder("C:\") -Gary
  11. glalsop

    Help with OR's in SQL statement...

    You will also need to wrap each OR "section" in parentheses: If Not IsNull(Me.txtSrchSCity) Then If sql <> " WHERE " Then sql = sql & " And " End If ok = True sql = sql & "([po_c1] LIKE '" & Me.txtSrchSCity & "' OR [po_c2] LIKE '" & Me.txtSrchSCity & "' OR [po_c3] LIKE...
  12. glalsop

    Sub report question

    You could place a text box on a form, and enter the date once in the text box. In all 5 querys, reference the text box in the criteria section of the date field: Between [Forms]![YourFormName]![txtStartDate] And [Forms]![YourFormName]![txtEndDate] -Gary
  13. glalsop

    Stop the Flickering

    I imagine that part of the flickering may be due to the fact that you are always setting the color, regardless of whether it is already the color you want or not. If you MUST use labels this way, perhaps consider testing for the color with an if statement: if Me.lblHandheld.ForeColor <>...
  14. glalsop

    SQLServer gone...Hello Access...but...

    If the record source for the report is a query, make sure ProdDate is selected in the query. Ultimately, you need to make sure that ProdDate is available in the record set that serves as your report's record source, be it a table or a query. If you click View -> Field List from the report's...
  15. glalsop

    Recordcount always show 1....

    Are you refering to a recordset? Try: rs.MoveLast: rs.MoveFirst before you use the count. -Gary

Part and Inventory Search

Back
Top