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

change query criteria from VBA

Status
Not open for further replies.

ljallem

Programmer
Jul 23, 2003
4
0
0
US
I need to change the criteria from VB on a cross-tab query created in Access. I have already created the cross-tab query.

Based on what the user selects on my form, I want to change the criteria from VB, open the query, and export the results to Excel. Its no problem to export but I cannot figure out how to change the criteria.

If it wasn't a cross-tab query then I would just write the sql myself and create a querydef object and export from there - however the cross-tab part makes this a little more complex.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top