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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Next Record Question

Status
Not open for further replies.

SuperG

Programmer
Mar 24, 2000
37
CA
I have a table lets call it clientlist.db with a unique primary key and client information after that.

ClientID +
ClientFName A
ClientLName A
ClientAddress A
ClientCity A

When I make a next record button it goes to the next record by my primary key. However I would like to have a next button go to the next client in the city of the current client.

How could I do that?

Any help you can give would be great.

Glenn
 
Glenn,

You need to create a secondary index containing the appropriate fields, either City, (most likely) PostalCode, if not both.

Next, make that the active index by:

1. Opening the form in Design mode.
2. Choosing Format | Filter.
3. Selecting your secondary index from the Order By list.
4. Choosing OK and saving the results.

You can also using this to provide alternate sort orders for details tables, provided the first fields in the secondary index are the linking fields to the master table.

Hope this helps...

-- Lance

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top