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

Populate Report using Public Functions?? - Need Assistance

Status
Not open for further replies.

AustinMan

Technical User
Feb 26, 2003
40
US
I have working on Form that uses ComboBoxes for criteria for doing Summary Totals on Professional Type information.

I run SQL statements based on criteria. I also used "ALL" as a selection for Summary Information.

The SQL statements run great.

I finally error-trapped the instance with no records are sent. (Defaulted to ALL)

Can I pass the values of the comboboxes to a report.

Here the catch. I am recreating the query, Print Preview the pre-defined report. And then delete that query.

The Report is static. Once printed or close, returns to Form.

I am using Docmd.Open Report for this process.

Can I pass the values of the criteria, two comboboxes in a public function, for that on-the fly report?

The SQL statement is located in Form. The Query is created in the form, and the statement to open is behind the form.

Please help. Any questions you need, just ask!!

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top