Pulling data into Excel "Too few Parameters"

  • Thread starter Thread starter tyler.deutsch
  • Start date Start date
T

tyler.deutsch

When I pull data from Access into excel using the external source
function, it always brings back an error message of "Too Few
Parameters. Expected 1."

How can I remedy this so that the data comes out?


Thanks!
 
One of two reasons:

Does your query in Access have parameters? if so remove them from the Access
query and put them directly in the MS Query tool that you use to pull the
data into Excel.

Or if not, there is a function in your query that isn't understood using the
MS Access->MS Query-> MS Excel route, the most common one i have found is the
NZ() function.
 
When I pull data from Access into excel using the external source
function, it always brings back an error message of "Too Few
Parameters. Expected 1."

How can I remedy this so that the data comes out?


Thanks!

Sounds like you're pulling the data from Access using a Query which has a
parameter that you're not filling in. Could you post your code, and the SQL
view of the query?

Another possibility is that your code has a misspelled fieldname - if your
table contains a field [PickledBeets] and you are trying to export a field
named [Pickled Beets], Access won't find it and will assume it's an undefined
parameter.

John W. Vinson [MVP]
 

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

Back
Top