G
Guest
How do you apply VB generated criteria to a query? Could someone give me the
details on how, in vb, to write a select statement where the criteria
variable can be dropped in and that recordset can then be used for a query.
I need to generate a query prefiltered by date and status, so I can count
the items a person has open. If Bill has ten items, six are open but only
four are in June, if the date and status fields are in the same query I get
results like this:
Bill 6/5/06 3 Open
Bill 6/7/06 1 Open
What I need is his open total for June: (Bill 4), but the count works off
the different dates. So, my thinking is if I have a query that is filtered by
the criteria, and it is the recordsource for the second query, (don't know
how to do this either), then the count will work properly. Any help with this
would be greatly appreciated
details on how, in vb, to write a select statement where the criteria
variable can be dropped in and that recordset can then be used for a query.
I need to generate a query prefiltered by date and status, so I can count
the items a person has open. If Bill has ten items, six are open but only
four are in June, if the date and status fields are in the same query I get
results like this:
Bill 6/5/06 3 Open
Bill 6/7/06 1 Open
What I need is his open total for June: (Bill 4), but the count works off
the different dates. So, my thinking is if I have a query that is filtered by
the criteria, and it is the recordsource for the second query, (don't know
how to do this either), then the count will work properly. Any help with this
would be greatly appreciated