Hello. I am trying to export a select query that references a crosstab query to Excel. I have the VBA code that exports regular queries and I'm using that code to automate the exporting process.
I have a form that supplies a specific date range for the user and I want to query my crosstab query for data within that date range. I have set the criteria for the date range, and have supplied the appropriate parameters in the parameter settings for the query. Yet when I try to export, it gives me the following error...
Run-time error '3061':
Too few parameters. Expected 1.
I have no problem exporting select queries that reference crosstab queries, but when I set criteria that refers to the date range on the form, I get the error. Any ideas?
I have a form that supplies a specific date range for the user and I want to query my crosstab query for data within that date range. I have set the criteria for the date range, and have supplied the appropriate parameters in the parameter settings for the query. Yet when I try to export, it gives me the following error...
Run-time error '3061':
Too few parameters. Expected 1.
I have no problem exporting select queries that reference crosstab queries, but when I set criteria that refers to the date range on the form, I get the error. Any ideas?