need help putting picture on form

  • Thread starter Thread starter reservedbcreater
  • Start date Start date
R

reservedbcreater

i had posted this earlier but the answer i got didnt work:

http://www.talkaboutsoftware.com/group/microsoft.public.access.formscoding/messages/253031.html

it didnt work because i downlaod pictureload.mdb and opened it but when i
go to choose a picture button i get error: cant find project or library

Here it is again:
on a survey entry form i want user to be able to enter in a entry with a
picture of a house to show. I want it to open a file dialog box
where you select the picture file. then it opens the picture onto the
form
so
u can see the pic whenever you open the survey forms for that survey with
that ID


btw i have access 2000, maybe that code from rogersaccesslibrary isnt
even
for access 2000? i am getting countless errors
 
Most likely it is simply a problem with References. In any code window, go
to Tools>References and scroll down the list until you find Microsoft DAO
3.6 Object Library. Click the checkbox next to it and close the window.
The code should work then.

Check out the following links for more about References:

http://www.rogersaccesslibrary.com/References.htm
http://members.iinet.net.au/~allenbrowne/ser-38.html
http://members.rogers.com/douglas.j.steele/AccessReferenceErrors.html
http://support.microsoft.com/default.aspx?scid=kb;en-us;283115


--
--Roger Carlson
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
 
roger, u have to help me moer with this....your code does not
work...countless errors...
i copied and pasted it but changed the directory
where my pictures are (they are in my documents\my pictures)
 
The code works perfectly. If I was Roger I would not appreciate your
insulting comment that the code has countless errors. Did you ever
consider that the problem may lie with the operator not the code?
 
hey im sorry, its just not working, im getting all kinds of errors. i
apprieciate roger's help very much.
 
Click the checkbox next to it and close the window.
The code should work then.


roger when u say this do u mean check or or check
because it was already checked. and didnt work.
 
compile error: can't find project or library

thats what i get
whether dao is checked or unchecked

please help?
 
OK, try this.

UNCHECK anything but the following:
Visual Basic for Applications
Microsoft Access 9.0 Object Library
OLE Automation
Microsoft DAO 3.6 Object Library

In looking at my copy, I find a number of unnecessary references (this can
happen when you modify an old app to do something else). Perhaps one or
more of these aren't on your system and is causing the errors. I will also
upload a clean copy to my website very soon.

If this doesn't work, you'll have to describe your problem in much greater
detail.

--
--Roger Carlson
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
 
Thanks Steve.

Actually, I'm not so disturbed by the thought that I make a lot of errors.
Heaven knows I make enough of those. What disturbs me more is the
implecation that I *must* help.

I'm sure reservedbcreater's comment was driven by frustration, and I'm glad
to try to help. But it is important to note that those of us who answer
questions or create websites with Access help/advice/samples do so for free
and have our own lives/jobs/problems to deal with too.

--
--Roger Carlson
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
 
i copied and pasted it but changed the directory
where my pictures are (they are in my documents\my pictures)

Be sure to remember that you can't use
My Documents\My Pictures
in your code. It's merely an alias for something like
C:\Documents and Settings\Your Username\My Documents\My Pictures
and you have to specify that in full, or by using something like this,
which will work for different users:

Dim strFolder As String
strFolder = Environ("USERPROFILE") & "\My Documents\My Pictures"
 
Back
Top