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
Need help with CASE statement
Why won't my local webpage show images in IE8?
How to export ipconfig results to a text file via VB.net
Can't start SQL Server Agent (SQLEXPRESS)
Crosstab Query with Decimal column Headers for MS Graph Datasheet
Using Forms Stored in an Access Library Database
MiniDump not saving to C:\windows\minidump
KMS and MAK
sql server 2000 and 2005 - side by side
outlook 2003 problem