Hi.
I'm using queryDef to run a query.
'Retrieve DailyTrans
Set qrydef = db.QueryDefs("2_DailyTrans"
qrydef("Region"
= strRegionParam
qrydef("StartDate"
= startDate
qrydef.Execute
When I use strRegionParam = "D Or 51" the return is null
when I use strRegionParam = "D" I get a return.
How do I express my strRegionParam = "D Or 51" so that it reads both parameters into my query?
A star for the correct answer.
Thanks for anything.
Russie
I'm using queryDef to run a query.
'Retrieve DailyTrans
Set qrydef = db.QueryDefs("2_DailyTrans"
qrydef("Region"
qrydef("StartDate"
qrydef.Execute
When I use strRegionParam = "D Or 51" the return is null
when I use strRegionParam = "D" I get a return.
How do I express my strRegionParam = "D Or 51" so that it reads both parameters into my query?
A star for the correct answer.
Thanks for anything.
Russie