Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a autoform autoreport in code 1

Status
Not open for further replies.

PWise

Programmer
Dec 12, 2002
2,633
US
Hi everyone
I have a query that the number of fields change dynamically
with
currentdb.querydefs("queryname").sql = sqlstr
the next line of code is
docmd.openquery "queryname"

can anyone pleae help me with some code to create a autoform
or autoreport to be able to view the code in a form
thanks
 
The following code will open the query in the QBE grid, showing it first as a report:

docmd.openquery "queryname", acViewPreview

Code On! Anthony J. DeSalvo
President - ScottTech Software
"Integrating Technology with Business"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top