Link to home
Start Free TrialLog in
Avatar of HKFuey
HKFueyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Vb syntax Visual Studio 2010: Shell syntax

I am trying to launch an Access Database but it does not work: -
  Dim Pathstr As String
            Pathstr = "C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE"
            Dim Exestr As String
            Exestr = "C:\My Folder\My AccessDb.mdb"
            MsgBox(Pathstr & " " & Exestr)
            Shell(Pathstr & " " & Exestr)

Open in new window

I think it may be the spaces in the folder name, can anyone help?
ASKER CERTIFIED SOLUTION
Avatar of chaau
chaau
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HKFuey

ASKER

Super, thanks very much!