Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine if database is mde database

Status
Not open for further replies.

dpimental

Programmer
Jul 23, 2002
535
US
All, I want to disable the bypass key but only if the database is an mde database.

How can I tell if the database is an mde database?

David Pimental
(US, Oh)
 
Look at the file properties? Is the file extension .mde?


Randy
 
I'm sorry that I wasn't being specific enough.

When I posted this I had been posting a few other questions on programming.

I have a database that I've converted to mde db.

I am going to give the mdb db to an administrator, in case they need to change anything.

I have an AutoExec macro that calls a dbStartup procedure. I want the procedure to determine if the db is mde or not. If it's an mde, I want to set the bypasskey to be disabled (the shift for bypass).

David Pimental
(US, Oh)
 
Looking at the file extension only works if it hasn't been manually changed. The best way is to use the technique documented in faq705-3569.

John
 
Thanks. That looks like the code that I've been looking for.

David Pimental
(US, Oh)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top