Nov 7, 2002 #1 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
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
Nov 7, 2002 1 #2 KenReay Programmer Aug 15, 2002 5,424 0 0 GB 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 Upvote 0 Downvote
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