I need the following line of code to work - currently it's not doing anything
Here's what I have:
If Me.opgProjectStatus = 2 and Me.txtContractStatus.Value <> "E-copy to LOB" Then
Dim MsgBox6 As Integer
MsgBox6 = Msg("You cannot close a contract unless 'E-copy to LOB' is selected", vbOkayOnly)
End If
Exit Sub
txtContractStatus is a combo box and one of the drop-down options is 'E-copy to LOB'
Can someone please tell me what I am doing wrong. Thanks!
Here's what I have:
If Me.opgProjectStatus = 2 and Me.txtContractStatus.Value <> "E-copy to LOB" Then
Dim MsgBox6 As Integer
MsgBox6 = Msg("You cannot close a contract unless 'E-copy to LOB' is selected", vbOkayOnly)
End If
Exit Sub
txtContractStatus is a combo box and one of the drop-down options is 'E-copy to LOB'
Can someone please tell me what I am doing wrong. Thanks!