how to saveas project file to access db

F

fenglei

Hi

I try to saveas project file to access db.
At VBA help, there have a filesaveas method, and set format string
arguement to "MSProject.mdb".
But in my code, it always fail.
my code is:

ThisProject.Application.FileSaveAs "aaaa.mdb", , , , , , , , ,
"MSProject.mdb"

error is:

Run-time error '1101':
The argument value is not valid.


I try other format, all can work. only saveas to access db fail.

anybody know this?

Thanks for any help
Fenglei
 
F

fenglei

Thank you Rod.
After record Macro, I find the formatID is "MSProject.mdb8" instead of
"MSProject.mdb" at MSDN Help.
Do not know why there have a wrong help file at MSDN.

Fenglei
 
N

Neowile

Hi,

I have an error message ("Invalid Argument") with

FileSaveAs("essai.mdb",0,1,0,0,0,"","","","MSProject.MDB8")

I use Office 2003

Can you help me please
 
J

JB

Don't enter blank strings for the null values (Table, UserId and
DataBasePassword)

Ex: FileSaveAs("essai.mdb",0, 1, 0, 0, 0, , , , "MSProject.MDB8"
 

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