I have a function that I'm trying to run but I need help resolving a space in the path. I probably don't want to rename the file if I don't have to. The function works fine without the space.
Public Function OpenOtherMDB()
On Error GoTo Err_Handler
Dim stAppName As String
stAppName = "C:\Program Files\Microsoft Office\Office\msaccess.exe
O:\WorkOrders.[Work Order New.mdb]" <--- space Here
Call Shell(stAppName, 1)
DoCmd.Quit
Exit_ErrHandler:
Exit Function
Err_Handler:
MsgBox Err.Description
Resume Exit_ErrHandler
End Function
Public Function OpenOtherMDB()
On Error GoTo Err_Handler
Dim stAppName As String
stAppName = "C:\Program Files\Microsoft Office\Office\msaccess.exe
O:\WorkOrders.[Work Order New.mdb]" <--- space Here
Call Shell(stAppName, 1)
DoCmd.Quit
Exit_ErrHandler:
Exit Function
Err_Handler:
MsgBox Err.Description
Resume Exit_ErrHandler
End Function