I've set up a script routine where the values are dynamic based on user input (via set field in an unsaved Find Mode). For some reason, the FileMaker "No records match this request." error message is not being suppressed by the If Status(Current Error) statement.
The script works, but "My Message" only appears AFTER the default FileMaker error message. What am I doing wrong here?
Here's the script ...
Toggle Window [Minimize]
Go to Layout ["Reg"]
Enter Find Mode[]
Set Field ["STATUS", "<3""]
Set Field ["CARR", "g_carrier_route"]
Perform Find[]
If ["Status(CurrentError)= 401"]
Show Message ["My Message"]
Go To Layout [Renewal 1]
Toggle Window [Maximize]
Halt Script
Else
Sort [Restore, No Dialog]
Toggle Window [Maximize]
End If
The script works, but "My Message" only appears AFTER the default FileMaker error message. What am I doing wrong here?
Here's the script ...
Toggle Window [Minimize]
Go to Layout ["Reg"]
Enter Find Mode[]
Set Field ["STATUS", "<3""]
Set Field ["CARR", "g_carrier_route"]
Perform Find[]
If ["Status(CurrentError)= 401"]
Show Message ["My Message"]
Go To Layout [Renewal 1]
Toggle Window [Maximize]
Halt Script
Else
Sort [Restore, No Dialog]
Toggle Window [Maximize]
End If