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
Click event overrides DblClick event
Exchange 2010 coexistence with Exchange 2003
Is there a way of inserting hyphens (-) into all of the existing phone numbers contained in my Outlook 2007 contacts list? So the format will be 123-456-7890 instead of 1234567890
Loading images from directory into 5 Pictureboxes HOW?
Generic path to open a file from VBA
SQL Select problem...need records with "best match" returned in order
How to link a signature image to a web page in Outlook 6 signature
SSRS - How can I increase a multi-value param dropdown? Got to be a way
replaced sbs 2003 server, netlogon 5513 errors
Force TransferSpreadsheet to fail on key violation