I am having a problem with a script that I am writing as a start-up for some databases.
What I am trying to do is make an "Opener" file that will sit on the users desktop and when they double click on it it will 1. ask for the password (same as IEP), then 2. open the IEP databases and then 3. close itself.
The script would be set to run at Startup for the DB.
Here is the script
:
If["Status (17)"] Status(CurrentModifierKey)
Halt Script
End If
Allow User Abort [Off]
Set Error Capture [On]
Open ["Start.fp5 (*)"] "*"=network
Set Field ["LastErrorGlobal","Status(0)"] Status(CurrentError)
If ["LastErrorGlobal <>0"] "<>" is not equal to
Show Message["Sorry, database not found."]
End If
Close ["IEP_Startup"]
When I double click on the "Startup_IEP" DB, it opens FMP, and give me the enter Password dialog box. I put in the password and it just brings up the blank record in the Startup_IEP DB and doesn't go to the "Start.fp5" file in the Server.
In the Global field should, I put in the error codes to store them, i.e., 0= No error, 100= File Missing
Can you help me figure out what I'm doing wrong?
The passwords are correct.