Results 1 to 5 of 5
  1. #1
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338

    SearchForm

    Hello

    Build this form for the user to enter provider name and it would only display that provider. For some reason it's not working for me.

    Database3.zip

    Thank You

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Suggest you can simplify the form RecordSource to an SQL that pulls directly from table instead of a query object.

    SELECT * FROM TOpenBalance WHERE PTLastName Like Forms!FTOpenBalanceForm.LastNameBox & "*";

    The value of the combobox is ID, not patient name. If you want to search on name, remove ID from the combobox RowSource and change ColumnCount and ColumnWidths properties.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    I would need to pull my data from the query because i have
    criteria setup. It doesn't show it on the sample db that i provided



    Quote Originally Posted by June7 View Post
    Suggest you can simplify the form RecordSource to an SQL that pulls directly from table instead of a query object.

    SELECT * FROM TOpenBalance WHERE PTLastName Like Forms!FTOpenBalanceForm.LastNameBox & "*";

    The value of the combobox is ID, not patient name. If you want to search on name, remove ID from the combobox RowSource and change ColumnCount and ColumnWidths properties.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Could put criteria in the form RecordSource sql statement.

    I never use dynamic parameterized query. I use VBA code to construct filter criteria and apply to form Filter property or pass to form or report when opening.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Ray67 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    338
    Got it to work

    Thank you

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Multi Criteria Searchform
    By cap.zadi in forum Queries
    Replies: 31
    Last Post: 01-20-2012, 01:56 PM
  2. Searchform query opened by macro
    By chessico in forum Forms
    Replies: 1
    Last Post: 08-19-2011, 10:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums