Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Too few parameters. Expected 1.

Ok, using Office XP, I'm trying to use the DataImport External DataNew
Database Query feature to bring data into my spreadsheet. I'm trying to use a
query located in example.mdb to do this.

Example.mdb contains nothing but link tables, but I am able to run my query
in Access just fine. When I select example.mdb as my external data source,
choose one of the queries located therein, and click 'Finish', I get the
following error message:

"Too few parameters. Expected 1."

....Then the import process dies and I'm left staring at a blank spreadsheet.

What is causing this? I've imported data this way before with no problems.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Too few parameters. Expected 1.

Is your query a parametric query. That is does the query prompt you for a
condition under which the query will run, at run time. If so you will get
this error as I assume Excel is not set up to provide that answer.

"simsjr" wrote:

Ok, using Office XP, I'm trying to use the DataImport External DataNew
Database Query feature to bring data into my spreadsheet. I'm trying to use a
query located in example.mdb to do this.

Example.mdb contains nothing but link tables, but I am able to run my query
in Access just fine. When I select example.mdb as my external data source,
choose one of the queries located therein, and click 'Finish', I get the
following error message:

"Too few parameters. Expected 1."

...Then the import process dies and I'm left staring at a blank spreadsheet.

What is causing this? I've imported data this way before with no problems.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Too few parameters. Expected 1.

Ah, maybe it's because I set two fields as search variables, asking a user
for input (ie, 'EmployeeID' and 'Date').

"Jim Thomlinson" wrote:

Is your query a parametric query. That is does the query prompt you for a
condition under which the query will run, at run time. If so you will get
this error as I assume Excel is not set up to provide that answer.

"simsjr" wrote:

Ok, using Office XP, I'm trying to use the DataImport External DataNew
Database Query feature to bring data into my spreadsheet. I'm trying to use a
query located in example.mdb to do this.

Example.mdb contains nothing but link tables, but I am able to run my query
in Access just fine. When I select example.mdb as my external data source,
choose one of the queries located therein, and click 'Finish', I get the
following error message:

"Too few parameters. Expected 1."

...Then the import process dies and I'm left staring at a blank spreadsheet.

What is causing this? I've imported data this way before with no problems.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Too few parameters. Expected 2 Suzanne Excel Discussion (Misc queries) 1 June 5th 08 12:46 AM
3601 Too Few parameters Expected 1 Phil Smith Excel Worksheet Functions 1 October 31st 07 01:21 AM
Expected:= ??? Zurn[_7_] Excel Programming 0 September 27th 04 01:57 PM
Expected:= ??? Zurn[_6_] Excel Programming 1 September 27th 04 01:45 PM
[ODBC Excel Driver] Too few parameters. Expected 1. Dave - A1 Excel Programming 0 September 4th 03 03:56 PM


All times are GMT +1. The time now is 11:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"