Dim stDocName As String
On Error GoTo Err_cmdRecurrent_Click
DoCmd.RunCommand acCmdSaveRecord
stDocName = "rpt_recurrent_reminder"
DoCmd.OpenReport stDocName, acViewPreview, , "[Crewmember] = " & Me.Crewmember
DoCmd.Maximize
Exit_cmdRecurrent_Click:
Exit Sub
Err_cmdRecurrent_Click:
MsgBox Err.Description
Resume Exit_cmdRecurrent_Click
The error says Syntax Error (comma) in Crewmember= Adams, Steve
Ok basically I have a small form that has a combo box. the user selects a name from the combo and clicks a button this should open a report based on the name selected. How can I modify this so it works?
I use the routine using a unique employee number but I need to view this list by the name as nobody knows whos who by employee number.
Confused? Me too but hopefully you got it a little bit.
On Error GoTo Err_cmdRecurrent_Click
DoCmd.RunCommand acCmdSaveRecord
stDocName = "rpt_recurrent_reminder"
DoCmd.OpenReport stDocName, acViewPreview, , "[Crewmember] = " & Me.Crewmember
DoCmd.Maximize
Exit_cmdRecurrent_Click:
Exit Sub
Err_cmdRecurrent_Click:
MsgBox Err.Description
Resume Exit_cmdRecurrent_Click
The error says Syntax Error (comma) in Crewmember= Adams, Steve
Ok basically I have a small form that has a combo box. the user selects a name from the combo and clicks a button this should open a report based on the name selected. How can I modify this so it works?
I use the routine using a unique employee number but I need to view this list by the name as nobody knows whos who by employee number.
Confused? Me too but hopefully you got it a little bit.