I use the following code in my Query save.
On Error Goto validationCheck
Call source.GotoField(“attachmentASAP”)
Call source.SelectAll
Call source.DeselectAll
validationCheck:
Print Str( Err ) & " has occured on line " & Str( Erl )
If (Err = 4412) Or (Err = 4407) Then
Continue = True
Exit Sub
Else
Continue = False
If Source.FieldGetText(“asapUpdated”) = “” Then
Msgbox “Key in Last Updated vale for ASAP documents”
End If
End If
End Sub
The field “attachmentASAP” - is a hidden field, which will be visible based on some conditions., When its visible I dont have any probs…
However when its hidden I get this message “Cannot locate field” - Eventhough I had used an error handler for it “4412 error code”
I just dont want that error message to get popped up. Kindly help.
Thanks in advance