- Joined
- 5/13/12
- Messages
- 4
- Points
- 11
Hello!
I want to call a function written in vba access from matlab. So far I have this.
Dim appAccess As Access.Application
Set appAccess = CreateObject("Access.Application")
appAccess.OpenCurrentDatabase "project_path\mimi.mdb", False
xx = appAccess.Application.Run("mimi.multi", 3) 'mimi.multi is the project name and function name
appAccess.Quit
End Sub
Any advice??
Thanks
I want to call a function written in vba access from matlab. So far I have this.
Access = actxserver('Access.application');
Db = invoke(Access.DBEngine,'OpenDatabase', 'path.accdb');
and what i need is this (but from matlab)
Public Sub mm()Dim appAccess As Access.Application
Set appAccess = CreateObject("Access.Application")
appAccess.OpenCurrentDatabase "project_path\mimi.mdb", False
xx = appAccess.Application.Run("mimi.multi", 3) 'mimi.multi is the project name and function name
appAccess.Quit
End Sub
Any advice??
Thanks