Hi again.
I've been using this line to link to recordsets :-
So far it has worked fine, but they've all been tables.
I now need to do the same but with a query.
This query selects records depending on 2 values. When I try and run this code it gives the error message:-
What is the syntax for passing the required parameters. I've tried all the things I can think of and searched briefly for an answer on the boards but couldn't find one.
As always, help much apprieciated.
Thanks
Smee.
I've been using this line to link to recordsets :-
Code:
set rs = db.OpenRecordset("Rates")
So far it has worked fine, but they've all been tables.
I now need to do the same but with a query.
Code:
Set rs = db.OpenRecordset("Rates Query")
This query selects records depending on 2 values. When I try and run this code it gives the error message:-
Too few Parameters. Expected 2
What is the syntax for passing the required parameters. I've tried all the things I can think of and searched briefly for an answer on the boards but couldn't find one.
As always, help much apprieciated.
Thanks
Smee.