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  dBforums > PC based Database Applications > Microsoft Access > modify parameter in pass-through query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-06-04, 07:42
izyrider izyrider is offline
Cavalier King Charles
 
Join Date: Dec 2002
Location: Préverenges, Switzerland
Posts: 3,729
Question modify parameter in pass-through query

i have a saved A pass-thru query calling an SQL-Server stored procedure with a parameter. it works purrrrrfectly when i set up the pass-thru manually using A's query designer interface.

the "SQL" in the passthru is simple
myStoredProcName 1234
where 1234 is the parameter (an Access long).

i now need to change the parameter from code.

anything i try* reduces the "SQL" to
SELECT;
and then (obviously) gives me an error saying i've got to SELECT something.

ideas????????

izy


*
i tried deleting the existing querydef and CreateQueryDef
i tried modifying the .SQL of the existing querydef
__________________
currently using SS 2008R2
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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