Microsoft
Software
Hardware
Network
Question : Open report from a double-click event on a form
I want to open a report when I double-click a record in a form which is in datasheet mode. Here is my code...
docmd.OpenReport "rptJobTicket",acViewPrevi
ew,,"[JobN
] = " & txtJobN,acWindowNormal
But it is not working correctly. The report does open but not to the record I double-click on.
Answer : Open report from a double-click event on a form
Well, every *looks* ok in your original line of code. Can you put a break point there and check the actual value in the text box?
And you might try this:
docmd.OpenReport "rptJobTicket",acViewPrevi
ew,,"[JobN
] = " & CLng(Me.txtJobN) ,acWindowNormal
Random Solutions
Why do I get "Invalid Qualifier" with the following code
printing a report in access using vba
SQL 2005 Express
Can't change working time in project 2007
Can you compare a field to nothing in a record set?
Left Double click with Mouse Doesn't work
OCS 2007 R2 problems adding pstn users via sip trunk to pc audio conference
Trouble registering OCX and DLL files in Win95
Shut down FSMO domain controller
Word Macro Security Setting with Group Policy