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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top