Send variables to a passthrough query

S

Steven K

Hello,

I have a passthrough query that calls data from a SQL Server database:

exec sp_web_WinLoss 'RegionData', 'win', '10-01-03', '04-30-04'

Is there any way to pull the parameters from a form, like the following:

exec sp_web_WinLoss 'RegionData', 'win', @myvariable2, @myvariable2

and then open that query?
 
R

Ragnar Midtskogen

You can use an ADO Command object to do that. Look up help for the Command
object.

Ragnar
 

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

Top