Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Is possible to open from QV a MsAccess file and run a macro?

Hi, i only know how to open a excel file, but this time a need to open an access file and run a macro from it.

It's possible?

Thanks in advance

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

This vba code is from Microsoft:

Sub AccessTest1()

      Dim A as Object

      Set A = CreateObject("Access.Application")

      A.Visible = False

      A.OpenCurrentDatabase("C:\My Documents\AccessAutomation.mdb")

      A.DoCmd.RunMacro "AccessMacro"

End Sub

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hi

     Using following macro we can open the ms access

Sub OpenAccess

    set obj=createobject("word.application")

obj.visible = true

End Sub

Regards

Ashok

m_woolf
Master II
Master II

This vba code is from Microsoft:

Sub AccessTest1()

      Dim A as Object

      Set A = CreateObject("Access.Application")

      A.Visible = False

      A.OpenCurrentDatabase("C:\My Documents\AccessAutomation.mdb")

      A.DoCmd.RunMacro "AccessMacro"

End Sub

Not applicable
Author

Thank you, from your code i only need to eliminate "Dim A as Object" and it works!