G
Guest
I have an Access2003 database (.mdb) form working that provides detailed
information on parts including links to JPEG photos in another directory.
The Image Object is ImageFrame1 and the column heading in my database is
Pic1. Pic 1 contains folder/file names for my photos. The VBA code in my
form used to call my photo's is as follows:
*********
Option Compare Database
Option Explicit
Private Sub Form_AfterUpdate()
CallDisplayImage
EndSub
Private Sub Form_Current()
CallDisplayImage
End Sub
Private Sub txtImageName_AfterUpdate()
CallDisplayImage
End Sub
Private Sub CallDisplayImage()
Me!txtImageNote = DisplayImage(Me!ImageFrame1, Me!Pic1)
Me!txtImageNote = DisplayImage(Me!ImageFrame2, Me!Pic2)
End Sub
***********
When I converted the database to an Access Project, the above code produces
a VBA error message 'Sub or Function not defined' when I open the form. The
VBA text 'DisplayImage' is highlighted in the VBA code screen.
Is the method to call for photo's in ADP (Project) different from MDB?
Your kind assistance would be most appreciated.
information on parts including links to JPEG photos in another directory.
The Image Object is ImageFrame1 and the column heading in my database is
Pic1. Pic 1 contains folder/file names for my photos. The VBA code in my
form used to call my photo's is as follows:
*********
Option Compare Database
Option Explicit
Private Sub Form_AfterUpdate()
CallDisplayImage
EndSub
Private Sub Form_Current()
CallDisplayImage
End Sub
Private Sub txtImageName_AfterUpdate()
CallDisplayImage
End Sub
Private Sub CallDisplayImage()
Me!txtImageNote = DisplayImage(Me!ImageFrame1, Me!Pic1)
Me!txtImageNote = DisplayImage(Me!ImageFrame2, Me!Pic2)
End Sub
***********
When I converted the database to an Access Project, the above code produces
a VBA error message 'Sub or Function not defined' when I open the form. The
VBA text 'DisplayImage' is highlighted in the VBA code screen.
Is the method to call for photo's in ADP (Project) different from MDB?
Your kind assistance would be most appreciated.