Hi Marooned,
If I understand it, correctly, you want to have a dynamic version of:
C:\Users\Rama\Documents\Medprog\
If your document is in the same folder as the database (ie Medprog), you should be able to use:
Set dbDatabase = OpenDatabase(ActiveDocument.Path & "\Medico.mdb")
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|