wo soll das passwort und wo der datenbank name stehen??
ich möchte ein access formular mit passwortschutz,über excel mit vba öffnen.das folgende beispiel öffnet zwar access,aber es kommt die passwort abfrage!
Option Explicit
Declare Function ShellExecute Lib "Shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Declare Function GetDesktopWindow Lib "user32" () As Long
Const SW_SHOWNORMAL = 1
Const SW_SHOWMAXIMIZED = 3
Sub db()
Dim x As Variant
x = ShellExecute(GetDesktopWindow(), "open", "G:\!Privat\MDB\KLIENTEN.mdb", "", "", SW_SHOWMAXIMIZED)
Call Ende
End Sub
DANKE