
Originally Posted by
Wayne311
I have a form where the user could invoke a procedure out of order and cause an error. The first field is null until the next field has any data entered at which point the first field is populated with a number. I am trying to stop the error and re-direct the user to the proper field. Any suggestions?
Thanks
Wayne
Private Sub Command10_Click()
If (Forms(Me.Parent.Name).Controls("RcptCRDistrict Subform1").Form!RcptNumber) = Null Then
MsgBox ("Enter Last Name") End If
Me.Text8 = DSum("Charge", "RcptCRDistrict", "[RcptNumber] = " & Forms(Me.Parent.Name).Controls("RcptCRDistrict Subform1").Form!RcptNumber)
Me.Refresh
End Sub