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
Multiple choices when filtering column
SQL Statement Replace Function
Unicode character retrieval from MS-Access
Disable edit box on PropertyPage from main window
How do I get the Date() to begin at 07:00 instead of 00:00
Draw gradient on panel control
Count records in subform meeting criteria
Windows 7 BitLocker with Active Directory
Script Error; line 2057; res://ieframe.dll.preview.<wbr />js
How do I find whether a bittorrent (protocol), application is running on a computer