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!

passing parameters into Access Query 1

Status
Not open for further replies.

longshuen

Programmer
Nov 7, 2002
3
0
0
US
I have a parameter in a Query. How can I pass a value into it without having to type it in from a form?

Kind of like setting Bind Variables in Oracle SQL

Thanks
Andrew
 
Hi

You can set it in code via the .parameter property of the query def

so using DAO syntax

Set Db = CurrentDb()
Set qdf = Db.QueryDefs("MyQuery")
qdf.parameters("MyParameter") = "MyValue" Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top