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
MS Access - how to trap SQL primary key violation error?
Changing the source for a query
HOW to map drives that STAY mapped after user logs off?
Crystal Reports newbie - how to increase text size
How to read a date column in excel using C#
Need to make some space on server - can I remove PCHEALTH folder
Cannot upload more than 50 Mb in Sharepoint 2003 library
Connecting using for Windows Vista Machines
add/edit/delete from dataset, and bind a field in dataset to a combobox,
How to use the icons in the Office2007IconsGallery