I'm trying to get some code to open an Access database file from within Excel. I don't need to open a specific table or form, I just need to open the database and the user can decide what they want to do from there.
I've tried the following code, but I'm not having any luck. I have just been trying stuff, because I'm not real proficient with VBA.
Dim AccApp As New Access.Application
Dim strDB As String
strDB = "database filename"
AccApp.OpenCurrentDatabase (strDB)
Thanks in advance for any help.
I've tried the following code, but I'm not having any luck. I have just been trying stuff, because I'm not real proficient with VBA.
Dim AccApp As New Access.Application
Dim strDB As String
strDB = "database filename"
AccApp.OpenCurrentDatabase (strDB)
Thanks in advance for any help.