I have a situation where I have a checkbox that is supposed to check if one of two criteria happens.
I can get it to check if one of the criteria is true but I'm having issues having it check if the other is.
So if one of the two cases below is true the chkSizeableUpch arge checkbox should be checked. But what's happening is that it's only checking the box if the txtDoorWidth option triggers it. It's ignoring the height, which I'm guessing is because it checks the width later, but I need it to do it based on either of them, like an Or in between but not sure how to write it. Any ideas or help would be appreciated.
I can get it to check if one of the criteria is true but I'm having issues having it check if the other is.
So if one of the two cases below is true the chkSizeableUpch arge checkbox should be checked. But what's happening is that it's only checking the box if the txtDoorWidth option triggers it. It's ignoring the height, which I'm guessing is because it checks the width later, but I need it to do it based on either of them, like an Or in between but not sure how to write it. Any ideas or help would be appreciated.
Code:
Select Case frm.TxtDoorHt.Value
Case 78, 84, 90, 96, 102, 108
frm.chkSizeableUpcharge.Value = False
Else
frm.chkSizeableUpcharge.Value = True
End Select
'Only valid door widths - 8, 9, 10, 12, 16, 18
Select Case frm.TxtDoorWidth.Value
Case 96, 108, 120, 144, 192, 216
frm.chkSizeableUpcharge.Value = False
Case Else
frm.chkSizeableUpcharge.Value = True
End Select
Comment