K
knowshowrosegrows
So I have a simple report that is fronted by a simple parameter form. On the
form they choose an agency from a drop down OR a region and then put in a
date range. I do not want them to be able to run the report by both a region
and an agency.
If they choose to run the report according to a region, I want them to be
able to choose region 1,2,3,4,5 OR ALL the regions.
I have a qry that will run the report by agency OR region. The SQL is below:
SELECT qryEventsInfo.Reg, qryEventsInfo.Agency, qryEventsInfo.EventDate
FROM qryEventsInfo
WHERE
(((qryEventsInfo.Agency)=forms!frmSiteVisitByDateVendorParam!ChooseVendor))
Or (((qryEventsInfo.Reg)=forms!frmSiteVisitByDateVendorParam!ChooseRegion));
What I don't know how to code in is the restriction that they can't put in
both an agency and a region parameter (I need a message box to pop up). I
also don't know how to code that if they choose ALL from the region drop
down, they can run a report for all the regions.
As always - any help is a gift.
form they choose an agency from a drop down OR a region and then put in a
date range. I do not want them to be able to run the report by both a region
and an agency.
If they choose to run the report according to a region, I want them to be
able to choose region 1,2,3,4,5 OR ALL the regions.
I have a qry that will run the report by agency OR region. The SQL is below:
SELECT qryEventsInfo.Reg, qryEventsInfo.Agency, qryEventsInfo.EventDate
FROM qryEventsInfo
WHERE
(((qryEventsInfo.Agency)=forms!frmSiteVisitByDateVendorParam!ChooseVendor))
Or (((qryEventsInfo.Reg)=forms!frmSiteVisitByDateVendorParam!ChooseRegion));
What I don't know how to code in is the restriction that they can't put in
both an agency and a region parameter (I need a message box to pop up). I
also don't know how to code that if they choose ALL from the region drop
down, they can run a report for all the regions.
As always - any help is a gift.