G
Guest
I have a maketable/append query (I've tried it both ways) that uses two
parameter references to combo boxes on an open form to build/append to a
table that is the record source for a subform.
When I run this query (either maketable or append) from the query window, it
works just fine. But when I run it from code (currentdb.execute "queryName")
it generates the "too few parameters. Expected 2" error.
Any ideas why the query runs but generates the error when run from code?
Any suggestions?
I'm doing it this way because there are some aggregations involved and the
query taps into a table containing over 1.7 million records. By creating
this new table, I can then sort and filter the subform without having to
rerun the underlying query, which generally takes several minutes.
parameter references to combo boxes on an open form to build/append to a
table that is the record source for a subform.
When I run this query (either maketable or append) from the query window, it
works just fine. But when I run it from code (currentdb.execute "queryName")
it generates the "too few parameters. Expected 2" error.
Any ideas why the query runs but generates the error when run from code?
Any suggestions?
I'm doing it this way because there are some aggregations involved and the
query taps into a table containing over 1.7 million records. By creating
this new table, I can then sort and filter the subform without having to
rerun the underlying query, which generally takes several minutes.