Problems passing values to a form.

smelly

Registered User.
Local time
Today, 09:53
Joined
May 23, 2002
Messages
44
I have been struggling with this for a few days now. I am not a VBA programmer and am trying to write the code to pass a project Number from FormA to FormB. I have a button which I am trying to put the code for an ONClick procedure in. I have tried a couple of things and searched the forum for answers and I am still getting error messages. Can anyone help?
Thanks in advance!!!!!!!!!!!
 
Use the OpenArgs property of your forms. Ex:

Pass a vaue to a form you are opening
docmd.OpenForm "YourFormName",,,,,,YourValueHere

Read the value from the opened form:
Debug.Print Me.OpenArgs
 

Users who are viewing this thread

Back
Top Bottom