passing ID Number to another form

yoavchen

Registered User.
Local time
Today, 02:20
Joined
Jan 31, 2005
Messages
53
i have two forms. one is the main form and there i put button that opened another form.
when i open the second form i want to link the ID number from the main form to the second form so i wont have to insert the number each time i am opening it.
 
Look up the docmd.openform statement in the help. You can use either the "where" clause, "Filter" clause or the Openargs to pass the ID.

The openargs you can then retrieve using me.openargs in the second form.

Or alternatively you can "simply" read the id off the first form using Forms("FirstFormName")!IDFieldName

I am allmost sure that this is a FAQ, check the FAQ & samples.

Regards
 

Users who are viewing this thread

Back
Top Bottom