Make Table query problem

J

JMCS

I am having a problem running a make-table query in VBA which I can run
directly from the database window without a problem.

The VBA is :

CurrentDb.Execute "qryTrackerMakeTable"

The error message is "Too few parameters - expecting 5"

Thanks
JMCS
 
P

Paolo

Hi JMCS,
in your query there are as parameters something from some forms?
Could you post the SQL of your make-table query

Cheers Paolo
 
V

vanderghast

You probably have 5 arguments of the form FORMS!FormName!ControlName.
CurrentDb.Execute does not solve automatically, for you, argument with the
syntax FORMS!FormName!ControlName. Use DoCmd.RunSQL instead, if this is the
case (and applicable in your case).


Vanderghast, Access MVP
 
J

JMCS

My thanks to both you and Paulo. You were both spot on; a little play around
with my query made the problem go away
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top