K
Kurt
I'm trying to use a cumbersome If...Then statement in the
AfterUpdate event of a combo box (called Rspns). It's not
making any noticable effect and I assume a Select Case
statement would be better anyhow. I just don't know how
to write it. Any ideas? Here's what I have now:
'If user selects "Other" for the Rspns with a
'QstnID of 19, enable and unlock the Rspns with a
'QstnID of 20. On the other hand, if the user
'selects anything but "Other" for this question,
'don't enable the Rspns with a QstnID of 20.
If Me![QstnID].Value = 19 Then
If Me![Rspns].Value = "Other" Then
If Me![QstnID].Value = 20 Then
Me![Rspns].Enabled = True
End If
ElseIf Me![Rspns].Value <> "Other" Then
If Me![QstnID].Value = 20 Then
Me![Rspns].Enabled = False
End If
End If
End If
Thanks. - Kurt
AfterUpdate event of a combo box (called Rspns). It's not
making any noticable effect and I assume a Select Case
statement would be better anyhow. I just don't know how
to write it. Any ideas? Here's what I have now:
'If user selects "Other" for the Rspns with a
'QstnID of 19, enable and unlock the Rspns with a
'QstnID of 20. On the other hand, if the user
'selects anything but "Other" for this question,
'don't enable the Rspns with a QstnID of 20.
If Me![QstnID].Value = 19 Then
If Me![Rspns].Value = "Other" Then
If Me![QstnID].Value = 20 Then
Me![Rspns].Enabled = True
End If
ElseIf Me![Rspns].Value <> "Other" Then
If Me![QstnID].Value = 20 Then
Me![Rspns].Enabled = False
End If
End If
End If
Thanks. - Kurt