todAnthony
Wait... What?
- Local time
- Today, 15:41
- Joined
- May 25, 2011
- Messages
- 26
As of this link: btabdevelopment.com/ts/samples . I have gotten and learned the "Open Generic Report with Various Criteria (simple sample)" database lesson.
My question is: If this code (that does work properly):
DoCmd.OpenReport "rptNotCompleted", acViewPreview, , "[surveyStatus]=" & Me.cboStatus
opens the generic report according to the selected surveyStatus, how would I go about doing 2 combo boxes to select 2 options to generate the report. With the single option of surveyStatus I get ALL projects. I would like to report the status of xProject. I just do not know how to add to this VBA to accomplish. I have the combo boxes in the form already. The above VBA is on the On Click event of the cmd button.
My question is: If this code (that does work properly):
DoCmd.OpenReport "rptNotCompleted", acViewPreview, , "[surveyStatus]=" & Me.cboStatus
opens the generic report according to the selected surveyStatus, how would I go about doing 2 combo boxes to select 2 options to generate the report. With the single option of surveyStatus I get ALL projects. I would like to report the status of xProject. I just do not know how to add to this VBA to accomplish. I have the combo boxes in the form already. The above VBA is on the On Click event of the cmd button.