G
Guest
Hi everyone,
I've tried to open a form (frmReidProductDrawings) with matching field
(Initials) to a particular field (Originator) in the existing form
(frmStaffList) after clicking a command button. My trial code below opens
frmStaffList alright, but it doesn't go to the record with matching fields.
Can someone please help?
--- start of code ---
Private Sub cbStaffListOpen1_Click()
' Open frmStaffList in pop-up with record which has Initials value
' matches with Originator in frmReidProductDrawings
DoCmd.OpenForm "frmStaffList", , , Initials =
Forms!frmReidProductDrawings!Originator
End Sub
--- end of code ---
I've tried to open a form (frmReidProductDrawings) with matching field
(Initials) to a particular field (Originator) in the existing form
(frmStaffList) after clicking a command button. My trial code below opens
frmStaffList alright, but it doesn't go to the record with matching fields.
Can someone please help?
--- start of code ---
Private Sub cbStaffListOpen1_Click()
' Open frmStaffList in pop-up with record which has Initials value
' matches with Originator in frmReidProductDrawings
DoCmd.OpenForm "frmStaffList", , , Initials =
Forms!frmReidProductDrawings!Originator
End Sub
--- end of code ---