Hi,
I have 5 categories that need to be ranked from 1-5 with an A, B, C, or D attached. For example, Crit1 could be ranked 1A, or 1B, or 1C, and so on until 5D. However, there are fields later in the form that I want to blank out unless any of the 5 categories is in the 1 or a 2 rankings.
I have a very long If/or statement, but I was wondering if anyone had a more elegant solution. I've played around with instr statements, but it's seemed to be a bit buggy and not work. Could anybody provide any suggestions? I'd appreciate any help.
Here is my code so far:
If ([Crit1] = "1A" Or [Crit1] = "1B" Or [Crit1] = "1C" Or [Crit1] = "1D" Or [Crit2] = "1A" Or [Crit2] = "1B" Or [Crit2] = "1C" Or [Crit 2] = "1D" .............) Then
Me.Field1.Enabled = True
Me.Field2.Enabled = True
Me.lblDetermineIfNeeded1.Visible = False
Else
Me.Field1.Enabled = False
Me.Field2.Enabled = False
End If
I have 5 categories that need to be ranked from 1-5 with an A, B, C, or D attached. For example, Crit1 could be ranked 1A, or 1B, or 1C, and so on until 5D. However, there are fields later in the form that I want to blank out unless any of the 5 categories is in the 1 or a 2 rankings.
I have a very long If/or statement, but I was wondering if anyone had a more elegant solution. I've played around with instr statements, but it's seemed to be a bit buggy and not work. Could anybody provide any suggestions? I'd appreciate any help.
Here is my code so far:
If ([Crit1] = "1A" Or [Crit1] = "1B" Or [Crit1] = "1C" Or [Crit1] = "1D" Or [Crit2] = "1A" Or [Crit2] = "1B" Or [Crit2] = "1C" Or [Crit 2] = "1D" .............) Then
Me.Field1.Enabled = True
Me.Field2.Enabled = True
Me.lblDetermineIfNeeded1.Visible = False
Else
Me.Field1.Enabled = False
Me.Field2.Enabled = False
End If