I have a table with paths to other databases
ex.
Company Path
CompanyX "C:company\xdata.mdb"
CompanyY "C:company\ydata.mdb"
Companyz "C:company\zdata.mdb"
I want to display the company name in a continouous form & add a sub to the field that will open the program.
ex.
Private Sub company_Click()
Dim stAppName As String
stAppName = "MSACCESS.EXE [path]"
Call Shell(stAppName, 1)
End Sub
What syntax should I use to get the path to work?
I get the error "MS Access can't find the database file '[path].mdb'
Thanks.
ex.
Company Path
CompanyX "C:company\xdata.mdb"
CompanyY "C:company\ydata.mdb"
Companyz "C:company\zdata.mdb"
I want to display the company name in a continouous form & add a sub to the field that will open the program.
ex.
Private Sub company_Click()
Dim stAppName As String
stAppName = "MSACCESS.EXE [path]"
Call Shell(stAppName, 1)
End Sub
What syntax should I use to get the path to work?
I get the error "MS Access can't find the database file '[path].mdb'
Thanks.