A
Adam Thwaites
I currently use this line of code to output reports in .doc format in my
database:
DoCmd.OutputTo acOutputReport, ReportName, ".rtf", PathAndFileName
Where ReportName lets say is 'Test Drive' and the PathAndFileName is 'C:\Mr
Anderson - Test Drive.doc'
I have several forms that use this line of code so for the query I can't
specify the text box for it to pull the PrimaryID from, I have to tell it to
prompt the user for the PrimaryID of the record.
I'v seen code like this used but it doesn't work for this particular output
method
Reports![Test Drive].Filter = "PrimaryID = " & Me![txtPrimaryID]
Reports![Test Drive].FilterOn = True
How can I make it so the report is output like this but so it doesn't have
to ask for the PrimaryID?
database:
DoCmd.OutputTo acOutputReport, ReportName, ".rtf", PathAndFileName
Where ReportName lets say is 'Test Drive' and the PathAndFileName is 'C:\Mr
Anderson - Test Drive.doc'
I have several forms that use this line of code so for the query I can't
specify the text box for it to pull the PrimaryID from, I have to tell it to
prompt the user for the PrimaryID of the record.
I'v seen code like this used but it doesn't work for this particular output
method
Reports![Test Drive].Filter = "PrimaryID = " & Me![txtPrimaryID]
Reports![Test Drive].FilterOn = True
How can I make it so the report is output like this but so it doesn't have
to ask for the PrimaryID?