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

    Filter Query to Sort Records on Form


    Hi all,

    I have an access database that I have created with a main base table thathouses information. From that base table I then have a form running offthe table that shows the information that is present in the table along withadditional fields that a user can use to input other information that isneeded. On the form I have a check box that the user will check when theyare done inputting the supplemental information for a specific record. The check box is checked when the user has finished filling out all thenecessary information for the corresponding record (This is tied to a field inthe table that the form runs off of). Once the check box is clicked Ihave a filter query that runs and filters out that record from the form afterthe check box has been updated.

    Thisworks great but I have one problem with it. For example, if the user is on the 30th record and thenclicks the box that they have filled out all the necessary information neededit then takes them back to the first record on the form (because the query hasre-ran). This can make navigatingthrough the form cumbersome if there are a large number of records, which therealmost always are. Is there any way thatit could just take them to the next record on the form after the check box hasbeen updated? (For example if on the 30th record it would take theuser to the 31st record after the check box has been updated and thequery has been rerun)


    Let me know if this can be done or if there is an easier way to go about this process

    Thanks in advance!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    This would take you to the same record:

    http://www.baldyweb.com/Requery.htm

    I suppose it could be modified to go to the next record, if it could be identified.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368
    Have you tried sorting the query ?
    If that doesnt work you can try coding it in VBA in the click event of your checkmark
    Code:
    docmd.GoToRecord ,,acLast
    Or goto the last record within your recordset by using .EOF (end of file)
    Youll have to excuse me for not providing an example for this as i havent got time for it at the moment.

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

Similar Threads

  1. Sort Order In Query Dies On Filter
    By VariableZ in forum Queries
    Replies: 12
    Last Post: 07-09-2013, 08:19 PM
  2. sort filter, doesn't sort everything
    By deso in forum Queries
    Replies: 4
    Last Post: 01-25-2013, 05:27 AM
  3. Replies: 3
    Last Post: 11-27-2012, 07:20 AM
  4. Filter and Sort a form based on TextBox Values.
    By Ramun_Flame in forum Programming
    Replies: 7
    Last Post: 10-28-2012, 06:53 AM
  5. Replies: 1
    Last Post: 10-25-2010, 04:34 PM

Tags for this Thread

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