M
mike
hi. i have recordset like so:
Set rs = db.OpenRecordset("SELECT * " & _
"FROM [qryPrograms] WHERE ([Territory]= rsMain!
[Territory]) AND (EndDate BETWEEN Now() AND (Now()+45))")
i'm getting an error that says "too few parameters:
expected 1". it works fine when i replace rsMain!
[Territory] with the hardcoded territory name. i think i
need something like below but can't seem to get it to
work. any help would be great. thanks!!
( & "[Territory]= rsMain![Territory]" & )
Set rs = db.OpenRecordset("SELECT * " & _
"FROM [qryPrograms] WHERE ([Territory]= rsMain!
[Territory]) AND (EndDate BETWEEN Now() AND (Now()+45))")
i'm getting an error that says "too few parameters:
expected 1". it works fine when i replace rsMain!
[Territory] with the hardcoded territory name. i think i
need something like below but can't seem to get it to
work. any help would be great. thanks!!
( & "[Territory]= rsMain![Territory]" & )