OpenCurrentDatabase

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
 
P

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
 

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

Top