How can I write a VB test to see if the database is Read-Only?

C

Chrisso

Hi All

I have a simple Access database that sometimes will be used by
external users off a DVD. In this case (of course) the database is
Read-Only.

How can I write a VB test to see if the database is Read-Only? and
therefore on a DVD?

If I can find a test then I can collect statistics when the database
is on our network and skip this when the database is on DVD.

I can do this in Excel with ThisWorkbook.ReadOnly but I cannot see
something similar in Access VB.

Thanks in advance for any ideas,

Chrisso
 
D

Douglas J. Steele

You can try writing, and trap the error that will occur since updates can't
be made.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top