Print only current record

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top