Syntax for 'If GetLastError' - FileMaker 12
I am setting up a script to provide various customised search options for users.
It all works fine until I get to the point of adding a custom dialog in the event that no records are found.
I must be missing someting about the required syntax. I have serached this forum, and the help file, but have not been able to find an answer.
When I try to enter someting like
If GetLastError = 401
I get the message that "The specified table cannot be found", but I can't see what table or field should be referred to.
I have set Error Capture Off to use the standard error dialog meantime, but would appreciate advice on the correct way to have the script generate a custom dialog when no records are found.
Thanks in anticipation.