Good Idea, but the database has to load-up in order to read the code, so wont work.
I understand and sympathize with your problem. I too have the same problem with some of our databases.
What we decided to do was not install A2K on the users machines. Another way, though is to create a directory on the network which is a "hidden share". Only those members of staff with access to this hidden share will be able to open the database ( and you can define that yourself ). Speak to your network administrator about this.
What I do when this isn't possible, is to create a shortcut on the machines of those people who have acces 2k, and make sure that these shortcuts for your database only ever point to Access 97, so for a database "C:\My Documents\MyDatabase.mdb" use :
"C:\Program Files\Microsoft Office\Office\v97\msaccess.exe" "C:\My Documents\MyDatabase.mdb"
and make sure that you protect it with security logins.
It would also be an idea to have a look at .mda files (system.mda) which defines the environment that databases open in.
Hope this helps. If anyone does come up with a better solution, please post. I would be equally as interrested.
Regards,
Mr Big.
Dont Be Small - Be BIG