Results 1 to 3 of 3
  1. #1
    RFR is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2013
    Posts
    1

    Entering multiple criteria on separate occasions within a form


    I have created a form which runs a query to search my database for lastname. Once the results of my query are displayed how can I go back to the form to select another last name without closing the query result?

  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
    53,648
    What do you mean 'runs a query' - opens a query object? Use the query as RecordSource for form. Requery the form.

    If you want to retain the first results even while running a second search, that will require saving records or setting the RowSource of a listbox. How many simultaneous searches will you want to do?
    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
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    You'll need to temporarily assign/store the Records somewhere; in a Temporary Table used as the RecordSource for a Form, in a Listbox/Combobox or something like this. Exactly what would be appropriate depends on what your end goal is; a plain language explanation of that might help us help you.

    A more logical approach might be to retrieve the Records via a Combobox and then do the assignment, but as I said, it all depends on your goal.

    Linq ;0)>

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

Similar Threads

  1. Replies: 14
    Last Post: 08-01-2013, 09:46 PM
  2. Replies: 8
    Last Post: 03-18-2012, 11:17 AM
  3. Entering multiple records on one form.
    By thefairman in forum Forms
    Replies: 4
    Last Post: 02-28-2012, 01:22 PM
  4. Entering multiple parts onto an order form at once...
    By Lincoln in forum Database Design
    Replies: 8
    Last Post: 07-01-2011, 05:28 PM
  5. Entering Criteria in a Query
    By wdrspens in forum Queries
    Replies: 4
    Last Post: 04-13-2011, 04:44 PM

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