In my form (frm_bm_Report) I have this code
Select Case optuniloy:
Case 0:
txtuniloyReportHeader = "All Uniloys"
txtuniloynumber = "*"
Case 1:
txtuniloyReportHeader = "Uniloy 1"
txtuniloynumber = "1"
Case 2:
txtuniloyReportHeader = "Uniloy 2"
txtuniloynumber = "2"
Case 3:
txtuniloyReportHeader = "Uniloy 3"
txtuniloynumber = "3"
Case 4:
txtuniloyReportHeader = "Uniloy 4"
txtuniloynumber = "4"
End Select
Then I have code to open a report that runs this qurey...
The query will run and fill in a criteria section from the form with this
Like [Forms]![frm_bm_Report]![txtuniloynumber]
this works great, but what I also need to do is add this
Case 5:
txtuniloyReportHeader = "Uniloy# 1 and #2"
txtuniloynumber = "1 and 2"
This code does not work
I need some help please...Thanks
Select Case optuniloy:
Case 0:
txtuniloyReportHeader = "All Uniloys"
txtuniloynumber = "*"
Case 1:
txtuniloyReportHeader = "Uniloy 1"
txtuniloynumber = "1"
Case 2:
txtuniloyReportHeader = "Uniloy 2"
txtuniloynumber = "2"
Case 3:
txtuniloyReportHeader = "Uniloy 3"
txtuniloynumber = "3"
Case 4:
txtuniloyReportHeader = "Uniloy 4"
txtuniloynumber = "4"
End Select
Then I have code to open a report that runs this qurey...
The query will run and fill in a criteria section from the form with this
Like [Forms]![frm_bm_Report]![txtuniloynumber]
this works great, but what I also need to do is add this
Case 5:
txtuniloyReportHeader = "Uniloy# 1 and #2"
txtuniloynumber = "1 and 2"
This code does not work
I need some help please...Thanks