S
Swordfish
Hello,
I have a main form with number field (Work Type, Work Category, Status,
Client ID, Review Score, etc.
I am trying to prevent the Review Score field from being filled in until the
Status field is filled in. Status is a combo box with four choices -
Complete, Complete - No Chg, Open and OnHold. Complete and Complete - No
Chg. need to be filled in before the Review Score is entered and if not a
msgbox popup requesting to fill in Status before entering a review score. My
current coding is below but it does not seem to be working. Would select
case be an option?
Thanks for the assistance.
Private Sub Review_Score_BeforeUpdate(Cancel As Integer)
Me.Review_Score.Disabled = IsNull(Me.Status) Then
MsgBox "You must select the 'Status' of the change before entering a
score"
Cancel = True
End If
End Sub
I have a main form with number field (Work Type, Work Category, Status,
Client ID, Review Score, etc.
I am trying to prevent the Review Score field from being filled in until the
Status field is filled in. Status is a combo box with four choices -
Complete, Complete - No Chg, Open and OnHold. Complete and Complete - No
Chg. need to be filled in before the Review Score is entered and if not a
msgbox popup requesting to fill in Status before entering a review score. My
current coding is below but it does not seem to be working. Would select
case be an option?
Thanks for the assistance.
Private Sub Review_Score_BeforeUpdate(Cancel As Integer)
Me.Review_Score.Disabled = IsNull(Me.Status) Then
MsgBox "You must select the 'Status' of the change before entering a
score"
Cancel = True
End If
End Sub