473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

picture attached to table

rb
What is the best way to include a picture of a product on a form that
includes info like (costs, list prices, sold, bought, and the like). I have
jpg files of products and would like to link to form and table. I am not
able to do code some simple macros ok

thanks ron
Apr 11 '06 #1
3 1287
On Tue, 11 Apr 2006 00:20:24 -0400, rb wrote:
What is the best way to include a picture of a product on a form that
includes info like (costs, list prices, sold, bought, and the like). I have
jpg files of products and would like to link to form and table. I am not
able to do code some simple macros ok


Dynamicaly change the picture property, which is a Fileref, in a picture
control element. If you aren't able to code, you can't make it.
The OLE object solution is not an option, because the database will blow in
size.
--
Mvh
Benny Andersen
Apr 11 '06 #2
Br
rb wrote:
What is the best way to include a picture of a product on a form that
includes info like (costs, list prices, sold, bought, and the like).
I have jpg files of products and would like to link to form and
table. I am not able to do code some simple macros ok

thanks ron

Add this code to the OnCurrent event procedure on your form

Dim Exists As Boolean
If Len(Me![Photo]) > 0 Then
Exists = FileExists(Me![Photo]) 'check image file actually exists
If Exists Then
Me![PhotoImage].Picture = Me![Photo]
Else
Me![PhotoImage].Picture = ""
End If
Else
Me![PhotoImage].Picture = "" 'clear pic otherwise will retain previous
record's image
End If

--
regards,

Br@dley
Apr 11 '06 #3

"rb" <no*@ffffff.net> wrote in message
news:55*****************@bignews4.bellsouth.net...
What is the best way to include a picture of a product on a form that
includes info like (costs, list prices, sold, bought, and the like). I
have jpg files of products and would like to link to form and table. I am
not able to do code some simple macros ok


Sorry, the examples later referenced require code, but they include the code
for acquiring and displaying the images, so you can just copy that much.

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.

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
Apr 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alain. | last post by:
I use a picture for the background for a form (picture property). This small (6ko) attached file make a mosaic (property Picture Tiling set to yes). The problem : with this image, the form seems...
1
by: Matt Evans | last post by:
Hi, this must have been asked for before, but I cannot see it. Hopefully this is very simple. I have a form which shows everything from a table. In this table is a picture field called photo....
3
by: Arno R | last post by:
Hi all, Starting from Access 2k we can use tables and queries directly in the Subform control as a SourceObject. The Subform-Sourceobject can be assigned when a query or table has been chosen from...
1
by: mclewell | last post by:
I would like to start off by saying i'm in no way an expert by any means. I've had access since 97 and way back then set up a database for eBay stock. i had the old micrografx picture publisher...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.