Greetings
My report(rptR, bound to qryR) has a subreport (srptS bound to qryS).
My form has 4 buttons (cmdS0, cmdS1, cmdS2, cmdS3).
When I click cmdS0, I have code to open rptA...
Here's where my newbie question comes in. When I click cmdS1, I once again want to open rptA, but I want a restriction put on srptS's recordsource, qryS. (I want only those records where the field WorkGroup = "" OR "Reserve". There are similar criteria on cmdS2 and cmdS3.
How do I do this? When the buttons are clicked, neither rptA nor srptS are open.
thanks for any help
Vicky C
My report(rptR, bound to qryR) has a subreport (srptS bound to qryS).
My form has 4 buttons (cmdS0, cmdS1, cmdS2, cmdS3).
When I click cmdS0, I have code to open rptA...
Code:
DoCmd.OpenReport "rptA", acViewPreview, , , acDialog
Here's where my newbie question comes in. When I click cmdS1, I once again want to open rptA, but I want a restriction put on srptS's recordsource, qryS. (I want only those records where the field WorkGroup = "" OR "Reserve". There are similar criteria on cmdS2 and cmdS3.
How do I do this? When the buttons are clicked, neither rptA nor srptS are open.
thanks for any help
Vicky C