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
Remove underscore from begining of filenames?
What is continue keyword in C++ is in VB.Net
Creating subform controls on differet tab pages in VBA
Import multiple Excel workbooks into a single Access Table
Writing a value from Visual Foxpro 9.0 to Pervasive SQL9.5 table
Finalize a CD using IMAPI CD-Burning COM Service
SSRS Bigint Data Type Export Problem
CRecordset and CLongBinary (BLOB problem)
I have 3 PC's running Vista and I keep getting bowser errors about who is the master browser
Missing ; at end of SQL statement