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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Access Report in VB

Status
Not open for further replies.

becshu

Technical User
Jan 28, 2003
18
US
I currently have a report linked to a query. This query is created in VB and the fields and numbers of fields are always changing. The report doesn't show the new fields each time the query is altered. Is there a way to create a report in VB so I can be sure to have the correct fields each time I run the macro to show it?
Thanks!
 
You may take a look at the Application.CreateReport method.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
If I use Application.CreateReport can I link it right to a query, or do I have to set the recordset for the report? I'm sure I could do the latter, but the former would save a lot of time since the query is already created.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top