Code on Button

jonamua1971

Registered User.
Local time
Today, 10:51
Joined
Mar 3, 2007
Messages
97
I Have a form that has a subform and i would like to open the form using the employee id. The main form shows records of employees in the subform.
i also have a form which has more info for the employees which i would like to open by clicking the command button on the main form when the employee record is highted.

Code:
[/DoCmd.OpenForm "staff"]
thanks in advance for your help
 
[DoCmd.OpenForm "staff" using employee id]
left something out in the code
thanks
 
How about simply when clicking a button on the subform record? I assume you have your SubForm in ContinuousForm mode?
 

Users who are viewing this thread

Back
Top Bottom