Jump to content
Sign in to follow this  

Cannot make FileMaker close all files?

Recommended Posts


I have a menu file with a button labelled "Close all files". This button just performs a "Close" script step, which makes the menu files' close script to run. This closing script performs a Close("File X") script step for each file in the solution (about 25). After these, FileMaker itself is shut down if no other file is open using a:

If("PatternCount(DatabaseNames,"<Return character>")=0")

Quit program

End If

The problem:

When running this close script, I always end up with some files still open. When pressing the button a second time, all of the files close properly. It seems that some files are re-opened after having closed them one time. I know this can happen if you have layouts visible that have portals etc. or in other ways reference relationships, that cause files to re-open. But in this case I've tried "everything", i.e. minimizing all files, performing Freeze Window etc, everything to make any relationships NOT having to open files. But still, they re-open. What gives?

Has anyone seen this behavious before?

The environment is FileMaker 5.0/5.5 and mixed Windows 2000/Mac OS 9 environment. The problem occurs on both platforms.



Share this post

Link to post
Share on other sites

I'm having the same problem as I write.

Try putting the script in a loop:


close all files on server

Exit loop If("PatternCount(DatabaseNames,"<Return character>")=0")

End Loop

My problem is that each file has it's own closing script, and when I try to close all files from the menu file, it opens each file to run its closing script.

It would be nice to have in Preferences->Application the option to close all files tongue.gif

Good Luck

Share this post

Link to post
Share on other sites

Actually, instead of sweating all the relationships, you can:

1. Specify to open your Menu file with defauslt password

2. Close the FileMaker app.

All the files will automatically close.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.