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

Transferring ID numbers to multiple forms for one subject

Status
Not open for further replies.

clackl

Technical User
Joined
Nov 6, 2002
Messages
14
Location
GB
I have a database where I keep extensive records for individuals. These involves one main demographics form with a unique ID number. The rest of the information is kept in a number of individual forms accessed by control buttons on the main form. However each time I access the forms via this button I need to reenter the ID number.

Is there a way of making this happen automatically.

(The forms are linked on ID number as the primary key in each form).
 
What do you mean you need to reenter the number... does the form come up blank? Or is there a pop up asking for criteria?

Bill
 
The form comes up blank.
 
I think you should be able to modify the Record Source SQL of your second form to use criteria by adding a where clause. For example:

Select * From [YourTable] Where [YourField] = Forms![MainForm]![IDNumber]

This will work provided the main form stays open. If you are planning to Close the main form you will need to open second form prior to closing main form. Hope this made sense.

Bill

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top