Cannot locate field error - How to avoid this?

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

Subject: Cannot locate field error - How to avoid this?

Presumably, you know the conditions under which the field is hidden/visible. Why not check the same conditions in your code rather than trying to kludge via GotoField?

Subject: RE: Cannot locate field error - How to avoid this?

Thanks for it! Yeah I can do that…!

But any idea of how to avoid that pop up? (this is for my knowledge)