I have a simple question. I would like to open a sub form using 2 different fields within the open form. I have the following command with an on click;
Private Sub Label27_Click()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
DoCmd.OpenForm "frm_View_ActivityID", , , "[Mgr ID] = '" & Me![Mgr ID] & "'"
End Sub
This works fine but I would also like to use a date field added to the command but I can't seem to get it correct. I want to open it with Me!MGR ID and Me!AcctDate
I tried
Private Sub Label27_Click()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
DoCmd.OpenForm "frm_View_ActivityID", , , "[Mgr ID] = '" & Me![Mgr ID] & "'" & "[ActDate] = '" & Me![ActDate] & "'"
End Sub
With no luck. Thanks for your help in advance.