T
termoPilucco
Hello, i have a problem instancing Access Application;
this code segment create a new instance of Access (2002 in my case) and
convert an old database in 2002 format.
Dim XpApp As Access.Application
Set XpApp = New Access.Application
XpApp.Visible = False
Call XpApp.ConvertAccessProject(strSrcDb, strDestDb, acFileFormatAccess2002)
XpApp.Quit
set XpApp= nothing
It works fine for me because i have Access 2002 application installed.
The problem is my client dont have the entire application installed, but
only the runtime.
So i get aoutmation error as the code reach the line "Set XpApp = New
Access.Application"
I know MS sugget this code to convert mdb to a 2002 format:
x = Shell("C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE " &
Chr(34) _
& strOLDDB & Chr(34) & " /Convert " & Chr(34) & strNewDb & Chr(34))
But i dont like the idea.
Can Anyone help me?
thanks and sorry for barbaric english,
termoPilucco
this code segment create a new instance of Access (2002 in my case) and
convert an old database in 2002 format.
Dim XpApp As Access.Application
Set XpApp = New Access.Application
XpApp.Visible = False
Call XpApp.ConvertAccessProject(strSrcDb, strDestDb, acFileFormatAccess2002)
XpApp.Quit
set XpApp= nothing
It works fine for me because i have Access 2002 application installed.
The problem is my client dont have the entire application installed, but
only the runtime.
So i get aoutmation error as the code reach the line "Set XpApp = New
Access.Application"
I know MS sugget this code to convert mdb to a 2002 format:
x = Shell("C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE " &
Chr(34) _
& strOLDDB & Chr(34) & " /Convert " & Chr(34) & strNewDb & Chr(34))
But i dont like the idea.
Can Anyone help me?
thanks and sorry for barbaric english,
termoPilucco