R
RedBeard
Hi,
I have made a report which I am trying to print only the current
record from.
Using the following:
Private Sub Print_Click()
Docmd.OpenReport "CD", acViewNormal, _
"[ID] = " & Me![ID]
End Sub
However, this gives me:
"Run-time error '3011':
The Microsoft Office Access database engine could not find the object
'[ID] = 181'. Make sure the object exists and that you spell its name
and path correctly."
ID 181 is one of the records in the table I am working from so the ID
exists.
So what am I doing wrong?
Cheers.
I have made a report which I am trying to print only the current
record from.
Using the following:
Private Sub Print_Click()
Docmd.OpenReport "CD", acViewNormal, _
"[ID] = " & Me![ID]
End Sub
However, this gives me:
"Run-time error '3011':
The Microsoft Office Access database engine could not find the object
'[ID] = 181'. Make sure the object exists and that you spell its name
and path correctly."
ID 181 is one of the records in the table I am working from so the ID
exists.
So what am I doing wrong?
Cheers.