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
migrating SQL databases to another server and get some weird error messages
Microsoft Access ADP file and Office Service Pack 3 problem
IIS7 won't parse classic ASP / VBScript
Windows 2003 Server with event id 1004 application error for wmiprvse.exe
Extract Day of the month in Date VBA
Automatically decline meeting request for a specific meeting on the calendar
How do I increase or turn on range locking.
Pivot Chart Grand Total
create a yes no messagebox in asp.net
Splice reports together for duplex printing?