I have a main form with a command button which opens up another a sub form. The Employee ID links all the forms together, but how do I get it that when I input into the subform that the employee ID is automatically filled in?
The Easiest way I can think off is to use the OpenArgs to Pass the ID to the Subform and in the open Event on the subform have some code simular to the following
If Not IsNull(me.openargs) then
EmpID=me.OpenArgs
End If
Hello,
if I unsderstand you right, you are trying to give the employee ID as a standard to other forms that you are opening with a cmdbutton. You can use ->
employee_ID = Forms("formname"![employee ID]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.