Limiting Dat base usage

A

Armon

Hi
Can I limit the datbase usage to a CD by using a serial number or something
like it?

Thanks

Armon
 
K

Klatuu

Copy the code from this site into it's own module:
http://www.mvps.org/access/api/api0003.htm

Now you can use the fDriveType() function to determine what kind of drive
you mdb file is on.

If fDriveType(Left(CurrentProject.Path,2)) <> "CD Rom" Then
Docmd.Quit
End If

CurrentProject.Path will tell you where the mdb file is located.
 

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