go to record in navigation form (1 Viewer)

spinkung

Registered User.
Local time
Today, 21:29
Joined
Dec 4, 2006
Messages
267
hi

i'm trying to go to a record in a form based on the selected record of a subform. both form are in a navigation form and i get an error when i try to run...

Code:
DoCmd.GoToRecord acDataForm, "frm_PO_employee", acGoTo, Me.CurrentRecord

the error is The object 'frm_PO_employee' isn't open

thanks
 

spinkung

Registered User.
Local time
Today, 21:29
Joined
Dec 4, 2006
Messages
267
thanks

i had to do make sure the focus was on the form i was trying to find a record on :

Code:
Form_frm_PO_employee.Form.userid.SetFocus
DoCmd.FindRecord userid, , True, , True
 

Users who are viewing this thread

Top Bottom