Open database Read-only

sdawson

Registered User.
Local time
Today, 09:49
Joined
Apr 22, 2003
Messages
165
Is it possible to put some code in start up form to make the whole of the db read only.
I know this is an option from the File,Open on the menu bar but I need to make sure that this archived data is never changed.

Thanks
 
So long as your user can only access the data through a form you can do this quite easily by setting the Form's Allow Editst, Allow Deletions & Allow Additions properties to False/No.
 
Not quite what I was looking for.
When there are multiple forms where data can be changed, this gets a little tiresome.
I was looking for something like the DOS command attrib +r.
Guess I'll have to stick with that!
 
VBA code:
SetAttr "Filepathname", vbReadOnly

I have databases which I update with monthly transactional information.
I set the attribute to vbNormal before loading, and vbReadOnly after loading. . .

does that work for you?

sportsguy
 
Works fine if the db is not open but gives a Runtime error on the open file.
Thanks for reply sportsguy.
 

Users who are viewing this thread

Back
Top Bottom