Error Adding MS Common Dialog Box

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I'm trying to add the MS Common Dialog Box to my form, and
I get this error message that says "You don't have the
license required to use this Active X control."

Why am I getting this? I never used to prior to install
SP3 for my Office 2000 Pro. version of Access.

Any suggestions would be appreciated. Thanks

Mark
 
....or, if you work with Office XP or 2003, you can use FileDialog object.

Dim fd As Office.FileDialog
Dim strArq As String

Set fd = Application.FileDialog(msoFileDialogFilePicker)
fd.Title = "Your title"
fd.AllowMultiSelect = False
fd.Filters.Add "image files", "*.bmp;*.jpg;*.jpeg"
If fd.Show = -1 Then
strArq = fd.SelectedItems(1)
End If

Luiz Cláudio C. V. Rocha
São Paulo - Brazil
 
Back
Top