S
Sarah at DaVita
I have the following code in my form. I am trying to make the user enter a
number between 1000 and 2000 in control PTNR_InsideLE if the control named
PTNR_InsidePtnr = Yes but nothing if it is No. I keep getthing an error. I
have the code in the After Update event on the PTNR_InsidePtnr control. I
have tried putting it in the after update event on the PTNR_InsideLE control
but still get the error.
Private Sub PTNR_InsidePtnr_AfterUpdate(Cancel As Integer)
If Me.PTNR_InsidePtnr = "Yes" Then
If Not Me.PTNR_InsideLE Then
MsgBox "Enter Inside LE number between 1000 and 2000"
Cancel = True
Me.PTNR_InsideLE.Undo
End If
End If
End Sub
Can someone tell me what I am doing wrong?
number between 1000 and 2000 in control PTNR_InsideLE if the control named
PTNR_InsidePtnr = Yes but nothing if it is No. I keep getthing an error. I
have the code in the After Update event on the PTNR_InsidePtnr control. I
have tried putting it in the after update event on the PTNR_InsideLE control
but still get the error.
Private Sub PTNR_InsidePtnr_AfterUpdate(Cancel As Integer)
If Me.PTNR_InsidePtnr = "Yes" Then
If Not Me.PTNR_InsideLE Then
MsgBox "Enter Inside LE number between 1000 and 2000"
Cancel = True
Me.PTNR_InsideLE.Undo
End If
End If
End Sub
Can someone tell me what I am doing wrong?