Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send parameters in pass-through query

Status
Not open for further replies.

mghafoori

Programmer
Feb 7, 2002
16
0
0
US
How can i use parameters in a pass-through query. I know you can use & to get the user to enter a parameter in Oracle, but I can't use that in Access Pass-through. any help?
 
The easiest way to do this is in VB. Build the SQL string including your new parameters and then set it to the SQL property of the query definition. Eg

set qdf= myDB.queryDefs("myPassThru")
sNewSQL = "select a,b,c from x where y = " + Cstr(me.parm)
qdf.SQL = sNewSQL Good Luck,
Mike T
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top