How to get parent MDB file for a MDE

P

Preet

Hi

Can you tell me how to get parent Access MDB file name for a Access MDE file
Please reply ASAP

Thanks and Regards
Pritesh
 
B

Brendan Reynolds

If by 'parent' you mean that the MDB has a reference to the MDE ...

Public Sub TestSub()

MsgBox "The MDE " & CodeProject.FullName & " was called by " &
CurrentProject.FullName

End Sub

CodeProject refers to the project that contains the currently executing
code, while CurrentProject refers to the project that is active in the
Access UI.

The DAO equivalents are CodeDb and CurrentDb. The following DAO example
displays the same result as the example above ...

Public Sub TestSub()

MsgBox "The MDE " & CodeDb.Name & " was called by " & CurrentDb.Name

End Sub
 

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

Similar Threads

mdb looks and acts like mde 3
Save command disabled in MDE 1
mde 5
Access 2007 and MDE file Question 9
Recovery of .mdb file 8
mde to mdb file 2
converting mde to mdb 1
setting up the printer in a mde 3

Top