G
Greg H.
I am attempting to open a MS Access database with a button in excel. I have
the path name hidden in a cell and the cell is named CSTS_Raw. I am using
the code below but when I run the code i get the below error: User-defined
type not defined. It then highlights "appAccess As New Access.Application".
Any ideas?
Private Sub CSTS_Raw_open()
Dim CSTS_Raw As Range
Set CSTS_Raw = ActiveSheet.Range("CSTS_Raw")
Dim appAccess As New Access.Application
Set appAccess = Access.Application
appAccess.OpenCurrentDatabase CSTS_Raw
End Sub
the path name hidden in a cell and the cell is named CSTS_Raw. I am using
the code below but when I run the code i get the below error: User-defined
type not defined. It then highlights "appAccess As New Access.Application".
Any ideas?
Private Sub CSTS_Raw_open()
Dim CSTS_Raw As Range
Set CSTS_Raw = ActiveSheet.Range("CSTS_Raw")
Dim appAccess As New Access.Application
Set appAccess = Access.Application
appAccess.OpenCurrentDatabase CSTS_Raw
End Sub