Results 1 to 3 of 3
  1. #1
    Ally1205 is offline Advanced Beginner
    Windows 7 64bit Access 2000
    Join Date
    Jul 2013
    Posts
    68

    Sorting records from a single-record form?

    I have a main (single record) form which takes its data from a query running off my main Client-records table.

    I would like to configure the form so that I can sort the records based on certain fields, such as County. I would like, say, a combo box which shows all counties in its drop-down list. If I click on one of the counties, the record showing in my form would be the first client who lives in that county. If I then click the next record button, the next resident of that county would show, and so on.

    This would be much easier, for my purposes, than, say, having a separate form for each county, each running on a county-specific query.



    Can this be done easily. If not, can anyone suggest the easiest way to achieve something similar?

    I want to view each record in a single-record form, because there are so many fields I need to examine. It would be too awkward to simply sort the main table by the county field. Reading all of the fields would be awkward, because of the extensive width of the table.

    Many thanks for any suggestions,
    Ally1205

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    Use an unbound combo box having the counties in its dropdown list in form header and filter the form in afterupdate event of this combo box.
    For multiple fields, you will need to build the filter criteria.
    See here for an example - http://www.techonthenet.com/access/f...ilter_form.php

  3. #3
    Ally1205 is offline Advanced Beginner
    Windows 7 64bit Access 2000
    Join Date
    Jul 2013
    Posts
    68
    amrut,
    Thank you. That was too easy!

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

Similar Threads

  1. Linking multple records to a single record...
    By rwslippey in forum Database Design
    Replies: 2
    Last Post: 05-05-2013, 06:40 PM
  2. Replies: 6
    Last Post: 08-30-2012, 06:23 PM
  3. Mutiple records into a single record
    By lwhatford in forum Database Design
    Replies: 3
    Last Post: 02-14-2012, 11:32 AM
  4. Replies: 5
    Last Post: 08-29-2011, 05:17 PM
  5. Replies: 8
    Last Post: 01-21-2011, 10:28 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