Further Assist Needed

N

nutmeg

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
 
S

Steve

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
 

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

Similar Threads

Browse function 2
File Box 6
Tweeking API Code 2
Runtime error 31519 2
Runtime Error 432 2
Retrieve just the file name, not the full path 3
import data from excel 1
Error 13 Type Mismatch HELP!!! 1

Top