Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Passing parameters from excel to access

Hi All,

I have a query in Access which expects a parameter. When I link the
access query to an excel using Data - Import External Data - New
Database Query and choosing this query, I get the message "Too few
parameters. Expected 1".

Any pointers to how I can resolve this by passing a parameter value
from excel (say, from a cell in the sheet) to the access query and
retrieve the results in the excel?

Do let me know

Thanks
Jabeen
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Passing parameters from excel to access



When you've selected the query and the fields and the sorting
When you select Data/New query you first get a wizard to
select the databse, table and columns.

When that is done the dialog "Import Data" comes up.
where you can indicate where the data needs to go..

At the bottom of that dialog there is a button "Parameters".
(it is greyed out when the query has no params, but it should be
available when your query HAS (and needs) params.




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Jabeen wrote :

Hi All,

I have a query in Access which expects a parameter. When I link the
access query to an excel using Data - Import External Data - New
Database Query and choosing this query, I get the message "Too few
parameters. Expected 1".

Any pointers to how I can resolve this by passing a parameter value
from excel (say, from a cell in the sheet) to the access query and
retrieve the results in the excel?

Do let me know

Thanks
Jabeen

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Passing parameters from excel to access

And just to add, here is a page on how to do it (including screenshots):

http://nickhodge.co.uk/gui/datamenu/...taexamples.htm

Nick Hodge's site.

--
Regards,
Tom Ogilvy


"keepITcool" wrote in message
.com...


When you've selected the query and the fields and the sorting
When you select Data/New query you first get a wizard to
select the databse, table and columns.

When that is done the dialog "Import Data" comes up.
where you can indicate where the data needs to go..

At the bottom of that dialog there is a button "Parameters".
(it is greyed out when the query has no params, but it should be
available when your query HAS (and needs) params.




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Jabeen wrote :

Hi All,

I have a query in Access which expects a parameter. When I link the
access query to an excel using Data - Import External Data - New
Database Query and choosing this query, I get the message "Too few
parameters. Expected 1".

Any pointers to how I can resolve this by passing a parameter value
from excel (say, from a cell in the sheet) to the access query and
retrieve the results in the excel?

Do let me know

Thanks
Jabeen



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
Passing Excel Objects As Parameters Jake Marx[_3_] Excel Programming 0 September 17th 04 04:25 PM
Passing Excel Objects As Parameters MDW Excel Programming 0 September 17th 04 04:17 PM
Passing parameters WarrenR Excel Programming 4 February 28th 04 09:11 PM
Passing parameters Eleanor[_2_] Excel Programming 0 February 4th 04 05:21 PM
Passing parameters to UDF mbobro[_3_] Excel Programming 5 January 2nd 04 04:25 PM


All times are GMT +1. The time now is 06:52 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"