Mike Scott
New Member
- Joined
- Nov 20, 2020
- Messages
- 2
- Office Version
- 2016
Hello! I have set up a macro on excel that opens our access database, and it works but only opens the password prompt window.
I have the macro attached to an icon in the quick access toolbar. I need to include a code that will add a password and open the switchboard.
Can anyone help?
Sub Macro9()
'Access object
Dim appAccess As Access.Application
'create new access object
Set appAccess = New Access.Application
'open the acces project
Call appAccess.OpenCurrentDatabase( _
"C:\VSAIS\VSAISApp.accdb")
appAccess.Visible = True
End Sub
I have the macro attached to an icon in the quick access toolbar. I need to include a code that will add a password and open the switchboard.
Can anyone help?
Sub Macro9()
'Access object
Dim appAccess As Access.Application
'create new access object
Set appAccess = New Access.Application
'open the acces project
Call appAccess.OpenCurrentDatabase( _
"C:\VSAIS\VSAISApp.accdb")
appAccess.Visible = True
End Sub