I have the SQL statement I Want to use to generate a query when in the form. Is there any way I can add a button to use this SQL statement to make a printable query??
Yes, see DoCmd.OpenQuery in help, which will allow yo to dispaly the query as a datasheet, or consider making a report and setting the Recordsource of the report to the SQL string you have built (in the OnOPen Event of the report).
Regards
Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now -
You can assign a macro to a command button that uses the OutputTo action to output the results of the query to an RTF, HTML, text or Excel file. The user could then open the output file and print it.
Cruising the Information Superhighway (your mileage may vary)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.