A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Links and Linking in Excel
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

pass parameter to access query



 
 
Thread Tools Display Modes
  #1  
Old November 29th 04, 02:58 PM
Bill Manville
external usenet poster
 
Posts: n/a
Default pass parameter to access query

Jamie Collins wrote:
> You can most definitely *execute* a Jet (MS Access) stored procedure
> (stored Query) using MS Query in Excel without VBA code.
>


OK.
Thanks for the clarification.
I must give it a whirl.
Pity my clients are all 2002 at latest....but one day...

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup

Ads
  #2  
Old November 30th 04, 08:57 AM
Jamie Collins
external usenet poster
 
Posts: n/a
Default

Bill Manville > wrote in message

> Pity my clients are all 2002 at latest


Why?

You can *create* the procedure within MS Access using the PROCEDURE
syntax e.g. I just tested your example

PROCEDURE MyProc [argSiteID] INTEGER;
SELECT * FROM Sites WHERE Sites=argSiteID

in Access95 and it works fine and will work for all subsequent
versions of MS Access.

You can *call* the procedure within MS Query using ODBC's call syntax.
Again, tested fine in Excel95 and above.

Jamie.

--
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:05 AM.


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