A
administrator
I'm trying to print out only the current record from my
form in a report but I'm getting this error
message "Syntax error (missing operator)in query
expression '([FullName=Cox, Carol A"'. It's trying to
pull from the current record but can't. I have the
following set for my event procedure 'On Click' ..
Private Sub RPTTkts_Click()
On Error GoTo Err_RPTTkts_Click
Dim stDocName As String
Dim strWhere As String
stDocName = "RPTTickets"
strWhere = "[FullName]=" & Me!Fullname
DoCmd.OpenReport stDocName, acPreview, , strWhere
Exit_RPTTkts_Click:
Exit Sub
Err_RPTTkts_Click:
MsgBox Err.Description
Resume Exit_RPTTkts_Click
End Sub
Thanks for any help
form in a report but I'm getting this error
message "Syntax error (missing operator)in query
expression '([FullName=Cox, Carol A"'. It's trying to
pull from the current record but can't. I have the
following set for my event procedure 'On Click' ..
Private Sub RPTTkts_Click()
On Error GoTo Err_RPTTkts_Click
Dim stDocName As String
Dim strWhere As String
stDocName = "RPTTickets"
strWhere = "[FullName]=" & Me!Fullname
DoCmd.OpenReport stDocName, acPreview, , strWhere
Exit_RPTTkts_Click:
Exit Sub
Err_RPTTkts_Click:
MsgBox Err.Description
Resume Exit_RPTTkts_Click
End Sub
Thanks for any help