OpenCurrentDatabase

  • Thread starter Thread starter Patrice
  • Start date Start date
P

Patrice

Hi,

I'm using Access 2002.

I use the following code to open an Access datbase from another one:
appAccess.OpenCurrentDatabase strDataBaseToOpen

It's work well with none secured database but I'm not able to open a
database who is linked with a workgroup.

How can we do to pass the command we use with the short cut?

By exemple:"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"
"C:\Projets\MyDataBase.mdb" / wrkgrp" "P:FTemps\FTemps.mdw"

Tank's

Patrice
 
I resolved it by adding that command:

appAccess.SetDefaultWorkgroupFile Path:="P:FTemps\FTemps.mdw"

before "appAccess.OpenCurrentDatabase strDataBaseToOpen"

and finish with the real default workgroup
 
Back
Top