>Then it works fine. In the exe it doesn't work. The records get deleted, but file won't pack.
Are you SURE it's really opening exclusive when it's running in the .exe?? Try using the ISEXCLUSIVE command to check before you do the pack.
ICQ 10556 (ya), 254117