H
Hawk
I can get a count of the rcords in a select query like
this:
Set db = CurrentDb
Set rst = db.OpenRecordset("qryVerifyTestStatus")
intCount = rst.RecordCount
However, I would like to count the records that the query
returns when a criteria is passed to the 'Lot' field. How
do I pass a criteria in VBA when I run the query?
For example: count records from the query where Lot = 12
Please realize that I am a newbie when giving any
explanations. TIA...
this:
Set db = CurrentDb
Set rst = db.OpenRecordset("qryVerifyTestStatus")
intCount = rst.RecordCount
However, I would like to count the records that the query
returns when a criteria is passed to the 'Lot' field. How
do I pass a criteria in VBA when I run the query?
For example: count records from the query where Lot = 12
Please realize that I am a newbie when giving any
explanations. TIA...