I'm new so please be patient.
I've written procedures in excel to manipulate data. Now I want to open access and open a database using the excel vba code.
here is the code i have written.
Sub OpenAccess()
Dim AccApp As Object
Dim AccDb As Database
Set AccApp = CreateObject("Access.Application"
AccApp.Visible = True
Set AccDb = OpenDatabase("c:\Chrono\CustomerProfileTest500.mdb"
End Sub
What happens is access momentairly appears then disappears from the screen as if it opened and then closed immediately.
Thanks for any help you can give me in getting past this.
I've written procedures in excel to manipulate data. Now I want to open access and open a database using the excel vba code.
here is the code i have written.
Sub OpenAccess()
Dim AccApp As Object
Dim AccDb As Database
Set AccApp = CreateObject("Access.Application"
AccApp.Visible = True
Set AccDb = OpenDatabase("c:\Chrono\CustomerProfileTest500.mdb"
End Sub
What happens is access momentairly appears then disappears from the screen as if it opened and then closed immediately.
Thanks for any help you can give me in getting past this.