Stemdriller
Registered User.
- Local time
- Today, 18:32
- Joined
- May 29, 2008
- Messages
- 187
Hi All,
I am led to believe that we can run various Access forms and queries etc from Excel!
I have used the code below, but when it runs it doesn't error but it doesn't do anything.
I am running Access and Excel 2007.
Can anyone enlighten me.
Thanks
'BEGIN CODE
Dim strDBName As String
Set appAccess = CreateObject("Access.Application")
strDBName = "E:\CustomerSatisfactionDatabase.accdb"
appAccess.OpenCurrentDatabase strDBName
appAccess.DoCmd.OpenQuery "qryTurbo3"
'END CODE
I am led to believe that we can run various Access forms and queries etc from Excel!
I have used the code below, but when it runs it doesn't error but it doesn't do anything.
I am running Access and Excel 2007.
Can anyone enlighten me.
Thanks
'BEGIN CODE
Dim strDBName As String
Set appAccess = CreateObject("Access.Application")
strDBName = "E:\CustomerSatisfactionDatabase.accdb"
appAccess.OpenCurrentDatabase strDBName
appAccess.DoCmd.OpenQuery "qryTurbo3"
'END CODE