Select case statement questions

A

Alan

in a Select case statement can i have two statement under one case for example

i got

Select Case Me.lstSalesPeriod
Case ByYear
strReportName = "Yearly Sales Report"
lOrderCount = DCountWrapper("*", "Sales Analysis", "[Year]=" &
Me.cbYear)

but i also want this case to do this

strReportName = "Yearly Sales Report"
lOrderCount1 = DCountWrapper("*", "1a11f raw", "[Year]=" & Me.cbYear)

can this be done
 
D

Daryl S

Alan -

Yes, you can have multiple statement for each case. All statements before
the next Case or End Select will be processed for the case.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top