T
Tim Schiermeyer
Can anyone tell me the difference between these two lines of code. I have
them place in the validation box for a check box control. One works
perfectly, the other allows for the selection of the check box but not the
deselection.
Line 1. =IIf(InStr([Rating_Errors_Full],"R6")>0,-1,0)
Or IIf(InStr([Rating_Errors_Full],"R6")>0,0,0)
And IIf([E_MVA]>0,0,0) Or IIf([E_MVA]>0,-1,0)
Line 2. =(IIf(InStr([Rating_Errors_Full],"R6")>0,-1,0)
Or IIf(InStr([Rating_Errors_Full],"R6")>0,0,0))
And (IIf([E_MVA]>0,0,0) Or IIf([E_MVA]>0,-1,0))
Note: only difference is the () used for grouping the logic in line 2. Line
1 is the item that performs correctly.
Thanks
Tim Schiermeyer
them place in the validation box for a check box control. One works
perfectly, the other allows for the selection of the check box but not the
deselection.
Line 1. =IIf(InStr([Rating_Errors_Full],"R6")>0,-1,0)
Or IIf(InStr([Rating_Errors_Full],"R6")>0,0,0)
And IIf([E_MVA]>0,0,0) Or IIf([E_MVA]>0,-1,0)
Line 2. =(IIf(InStr([Rating_Errors_Full],"R6")>0,-1,0)
Or IIf(InStr([Rating_Errors_Full],"R6")>0,0,0))
And (IIf([E_MVA]>0,0,0) Or IIf([E_MVA]>0,-1,0))
Note: only difference is the () used for grouping the logic in line 2. Line
1 is the item that performs correctly.
Thanks
Tim Schiermeyer