Displaying Images op a form

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

Guest

Hello Al

I have a form that I want to display pictures of equipment (.BMP's). I have a table that has the name of the pictures (.BMP's). All of the pictures reside in the same directory. I concatinate the directory name tand the file name and come up with a FQN. I want to display the picture in a control when the record is navigated to (all fields on the form are unbound, I'm controlling the record navigation myself)

I have tried Image, Unbound and Bound objects and can't get the image to change (the rest of the data does

Can anyone shed anylight on what I might be doing wrong. Any help would be appreciated

Thanks in advanc

George
 
George,

Go back to 6/1 and find the post "Photos On Form". (3.33PM my time) Look at my
response there - it will tell you how to do it.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
(e-mail address removed)
www.pcdatasheet.com


George said:
Hello All

I have a form that I want to display pictures of equipment (.BMP's). I have a
table that has the name of the pictures (.BMP's). All of the pictures reside in
the same directory. I concatinate the directory name tand the file name and
come up with a FQN. I want to display the picture in a control when the record
is navigated to (all fields on the form are unbound, I'm controlling the record
navigation myself).
I have tried Image, Unbound and Bound objects and can't get the image to
change (the rest of the data does)
 
I pulled up your posting, and basically that was what i was doing

I tried your code and it still did not work

I did not have time to try various variations of your solution..

Let me ask yo
(1) Did you use a Image, bound or unbound control
(2) No form is not bound to any query ... I am running the query with

Set xrst = dbs.OpenRecordset("Equipments", dbOpenDynaset
xqry = "[Equipment Key] > 0

i then load the text and other controls with data off of the query ...would that make any difference in your solution

thanks for your inpu

George
 
< I have a form that I want to display pictures of equipment (.BMP's). I
have a table that has the name of the pictures (.BMP's). All of the
pictures reside in the same directory. I concatinate the directory name
tand the file name and come up with a FQN. I want to display the picture
in a control when the record is navigated to (all fields on the form are
unbound, I'm controlling the record navigation myself). >

The sample imaging databases at http://accdevel.tripod.com illustrate three
approaches to handling images in Access, and the download includes an
article discussing considerations in choosing an approach. Two of the
approaches do not use OLE Objects and, thus, avoid the database bloat, and
some other problems, associated with images in OLE Objects. These sample
databases work for me on applicable versions of Access, and for others.

If you are printing the images in reports, to avoid memory leakage, you
should also see MVP Stephen Lebans' http://www.lebans.com/printfailures.htm.
PrintFailure.zip is an Access97 MDB containing a report that fails during
the Access formatting process prior to being spooled to the Printer Driver.
This MDB also contains code showing how to convert the contents of the Image
control to a Bitmap file prior to printing. This helps alleviate the "Out of
Memory" error that can popup when printing image intensive reports.

Larry Linson
Microsoft Access MVP
 
Back
Top