G
Guest
I want to print only the current record bur Access tells me the following:
"Runtime error 3464
Data type mismatch in criteria expression"
I am using the following code on a command button on my form.
I want to print from Labels Contacts1.
Dim strDocName As String
Dim strWhere As String
strDocName = "Labels Contacts1"
strWhere = "[JobTitle]=" & Me!JobTitle
Any help would be appreciated.
Thanks
DoCmd.OpenReport strDocName, acPreview, , strWhere
"Runtime error 3464
Data type mismatch in criteria expression"
I am using the following code on a command button on my form.
I want to print from Labels Contacts1.
Dim strDocName As String
Dim strWhere As String
strDocName = "Labels Contacts1"
strWhere = "[JobTitle]=" & Me!JobTitle
Any help would be appreciated.
Thanks
DoCmd.OpenReport strDocName, acPreview, , strWhere