Missing Character

Novice1

Registered User.
Local time
Today, 09:57
Joined
Mar 9, 2004
Messages
385
I'm trying to open a front end database with VBS but I'm having trouble, which I believe is because of the SPACE in the path (Public Documents). See below. Other than renaming the file folder, is there a way I can open the application?


Dim accapp As Access.Application

Set accapp = New Access.Application

accapp.OpenCurrentDatabase
("C:\Users\Public Documents\SignInPlus\DEERS_Office\DEERSPlus.accdb")

Thank you
 
the space will not be an issue. Explain what you mean by 'having trouble' - you get an error, (if so what) nothing happens, wrong db opens, lights go out?
 
This is how I would open the access db in my old job using vbs

HTH

Code:
Dim oAccess

'Open PPI caseflow

Set oAccess = CreateObject("Access.Application")
oAccess.Visible = True
oAccess.OpenCurrentDatabase("C:\Program Files\PPI Caseflow\PPI Caseflow.mde")
 

Users who are viewing this thread

Back
Top Bottom