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

Button Find and Find Next in form/subform

Status
Not open for further replies.

Natha2

Programmer
Dec 23, 2004
17
0
0
BE
Hi,

We are a telco and have an Access project that manages the customers and their telephone number(s).

I have a main form with a subform in it.

The records in main form (customers) come from one table and are unique.

The records in subform (telephone numbers) come from another table.

A same telephone number can be owned by two or more customers (for different periods, of course).

I want to have a text box where user can input some telephone number, click on a button "Find" and the matching customer be displayed in the main form.

If the first find is not what he wants, he should click on (the same or) another button "Find Next", and the next matching customer be displayed in the main form.

And so on, till he gets a message like "No more matching records...".

What method could I use for that?

Thanx in advance for any help!
 
Have a look at the Filter and FilterOn properties of the Form object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
How are ya Natha2 . . .

With the [blue]Filter[/blue] method (already addressed by [blue]PHV[/blue]), you'll get all matching numbers in one shot!

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top