Currently there are (2) option groups:
Dim strWhere1 as string
Dim strWhere2 as string
1) Me.grpSortBy
Case1
strwhere1 = ......
Case2
strwhere1 = ......
Case3
strwhere1 = ......
2) Me.Criteria
Case1
strwhere2 = ......
Case2
Strwhere2 = ......
Case3
strwhere2 = ......
If there was only on case I know I could use
strWhere1 = strWhere1 & " and [Plant] = 'Area1'"
However, how do you combined 2 different select cases?
I have tried something like:
StrWhereT = strwhere1 & strwhere2
and tried
strwhereT = strwhere1 + strwhere2
then replaced strwhere1 in the codes end by strwhereT. However that did not work.
That is why I would like to know how to combined (2) Select cases....
Any type of example would be appreicated.
Thank you for any and all help,
PBrown
Dim strWhere1 as string
Dim strWhere2 as string
1) Me.grpSortBy
Case1
strwhere1 = ......
Case2
strwhere1 = ......
Case3
strwhere1 = ......
2) Me.Criteria
Case1
strwhere2 = ......
Case2
Strwhere2 = ......
Case3
strwhere2 = ......
If there was only on case I know I could use
strWhere1 = strWhere1 & " and [Plant] = 'Area1'"
However, how do you combined 2 different select cases?
I have tried something like:
StrWhereT = strwhere1 & strwhere2
and tried
strwhereT = strwhere1 + strwhere2
then replaced strwhere1 in the codes end by strwhereT. However that did not work.
That is why I would like to know how to combined (2) Select cases....
Any type of example would be appreicated.
Thank you for any and all help,
PBrown