D
Daniel Caron
Good Day to all.
Coming from the VB6 world, I am being confronted with a dilemna here.
When running my template from within the VBA IDE, there is no problem at all
to open my database like this
Set dbPars = OpenDatabase(ActiveDocument.Path & "\" & "pars.mdb")
Set rsPars = dbPars.OpenRecordset("PARS").
But the DB is in another directory on my HD. I need to know to code the path
of my DB so it can be anywhere on my HD.
And also I need to know where in the DOT I should put that code, in a module
? in the Userform_Initialize ? I want to make sure that it will get loaded
flawlessly when opening the DOT file.
Regards to all
Daniel
Coming from the VB6 world, I am being confronted with a dilemna here.
When running my template from within the VBA IDE, there is no problem at all
to open my database like this
Set dbPars = OpenDatabase(ActiveDocument.Path & "\" & "pars.mdb")
Set rsPars = dbPars.OpenRecordset("PARS").
But the DB is in another directory on my HD. I need to know to code the path
of my DB so it can be anywhere on my HD.
And also I need to know where in the DOT I should put that code, in a module
? in the Userform_Initialize ? I want to make sure that it will get loaded
flawlessly when opening the DOT file.
Regards to all
Daniel