M
moony via AccessMonster.com
Hi everbody,
I'm using Access 2000. Want to Open a file through a dialog and I am using the example below.
The problem is that the first line (Dim Fd As FileDialog) produces a Compile-error : "User-defined type not defined" even if I enabled "Microsoft Office 9.0 Object Library" and "Microsoft DAO 3.6 Object Library".
Code :
Dim Fd As FileDialog
Set Fd = Application.FileDialog(msoFileDialogOpen)
With Fd
..AllowMultiSelect = False
If .Show = -1 Then
path = .SelectedItems(1)
Else
Exit Sub
End If
End With
Set Fd = Nothing
Can I download "Microsoft Office 10.0 Object Library" and install it with access 2000?
Thanks in advance.
Moony
I'm using Access 2000. Want to Open a file through a dialog and I am using the example below.
The problem is that the first line (Dim Fd As FileDialog) produces a Compile-error : "User-defined type not defined" even if I enabled "Microsoft Office 9.0 Object Library" and "Microsoft DAO 3.6 Object Library".
Code :
Dim Fd As FileDialog
Set Fd = Application.FileDialog(msoFileDialogOpen)
With Fd
..AllowMultiSelect = False
If .Show = -1 Then
path = .SelectedItems(1)
Else
Exit Sub
End If
End With
Set Fd = Nothing
Can I download "Microsoft Office 10.0 Object Library" and install it with access 2000?
Thanks in advance.
Moony