Parameter value in VBA

Dharmesh

Registered User.
Local time
Today, 21:37
Joined
Dec 7, 2006
Messages
25
Hi

I have a command button which is linked to a parameter query. The query runs perfectly when the command button is selected, but i want to add the value of the parameter query into the VBA code so that i dont have to keep on typing the value in. Is there a way of doing this.

Thanks

Dharmesh
 
I usually do it as:

db.querydefs("queryname").parameters("param_name").value = value
 

Users who are viewing this thread

Back
Top Bottom