G
Grant Nicholson
i am trying to validate the data in a textbox using the following code:
ctl = txtRepairOrder
If Not ctl >= 128000 Or ctl <= 140000 Then
DisplayMessage "Repair Order number is NOT a valid repair order
number!" & (Chr(10)) & "Please enter a valid Repair Order Number."
End If
Response = acDataErrContinue
Me.txtRepairOrder.SetFocus
i get an error saying i must save the field before i can set focus or
gotocontrol.
using RunCommand acCmdUndo clears all the information from the form when i
just want to clear the text box.
any suggestions?
ctl = txtRepairOrder
If Not ctl >= 128000 Or ctl <= 140000 Then
DisplayMessage "Repair Order number is NOT a valid repair order
number!" & (Chr(10)) & "Please enter a valid Repair Order Number."
End If
Response = acDataErrContinue
Me.txtRepairOrder.SetFocus
i get an error saying i must save the field before i can set focus or
gotocontrol.
using RunCommand acCmdUndo clears all the information from the form when i
just want to clear the text box.
any suggestions?