Further Assist Needed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am struggling with trying to place the file name and path for a image into
a field. I have reviewed Mr. Linson's examples and believe the one I want is
the external file because it does just store the path and file name.
Unfortuntately when I try to put the code in to open the data entry form it
stops and gives me a Compile Error with Sub or Function Not Defined at the
StrFilter= ahtAddFilterItem. The dim for strFilter is set to string. Is
there something to do with the 'ahtAddFilterItem' that is the problem. I'm
using Access 2002.
Thank you, any help gratefully accepted.
IEJ
 
Your table needs a field to store the file name and path for a image. Your
form needs a textbox where you can enter the file name and path for a image.
That same textbox will display the file name and path for a image that has
already been recorded. Assume the textbox is named MyImagePath. Your form
also needs an image control to display pictures. Assume the name of the
image control is MyImageControl. You need the following code in the form's
Current event:
If Not IsNull(Me!MyImagePath) Then
Me!MyImageControl.Picture = Me!MyImagePath
Else
Me!MyImageControl.Picture = ""
End If
 
Back
Top