Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2000 VS 2003

Status
Not open for further replies.

ZoDra

Programmer
Oct 27, 2005
36
SI
Hi everyone,

Recently I received a mdb which works fine with access 2003, but crashes when running in access 2000. Mdb is 2000 format and this piece of code is not working:
With Application.FileDialog(msoFileDialogFilePicker)
.Title = "Select Employee Picture"
.Filters.Add "All Files", "*.*"
.Filters.Add "JPEGs", "*.jpg"
.Filters.Add "Bitmaps", "*.bmp"
.FilterIndex = 3
.AllowMultiSelect = False
.InitialFileName = CurrentProject.path
result = .Show
If (result <> 0) Then
fileName = Trim(.SelectedItems.Item(1))
Me![ImagePath].Visible = True
Me![ImagePath].SetFocus
Me![ImagePath].Text = fileName
Me![Naziv].SetFocus
Me![ImagePath].Visible = False
End If
End With
It deals with capability to search and include a file (picture) into access data base data. Compiler error is reported in statement:
Wirh Application.Filedialog ... stating that msoFileDialogFilePicker variable is not defined.

Is there a solution to this problem? I understand that this variable is not declared until version 10 of MSAccess object library.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top