ik zit met het problem dat als ik op de open knop druk hij wel netjes het open-scherm opent maar als ik een .mdb bestand selecteer dez niet opent. hij start MS Access wel op maar dit doet ie ook als ik het Open menu op cancel druk. Hoe kan dit? 
code:
Private Sub mnuFileOpen_Click()
Dim sFile As String
With dlgCommonDialog
.DialogTitle = "Open"
.CancelError = False
'ToDo: set the flags and attributes of the common dialog control
.Filter = "Microsoft Access Database (*.mdb)|*.mdb"
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
sFile = .FileName
End With
Shell ("C:\Program Files\Microsoft Office\Office\MSACCESS.EXE"), [vbMaximizedFocus]
End Sub
code:
Private Sub mnuFileOpen_Click()
Dim sFile As String
With dlgCommonDialog
.DialogTitle = "Open"
.CancelError = False
'ToDo: set the flags and attributes of the common dialog control
.Filter = "Microsoft Access Database (*.mdb)|*.mdb"
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
sFile = .FileName
End With
Shell ("C:\Program Files\Microsoft Office\Office\MSACCESS.EXE"), [vbMaximizedFocus]
End Sub
Never eat yellow snow...