473,473 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Image Handling Problems...

Thank you for trying to help.

I am a newbie trying to learn access. I am creating a database in
access97 with few picture fields in it. After some research I decided
to use the famous "External File" type suggested by Larry Linson.

I decided to go into datasheetview of the table and manually fill up
the directory root for the files. Everything works fine. My problem
here is there are some records which don't have a picture to it. So
when i view the records in a form, those records that don't have a
picture on it are not blank but still hold the previous records
picture. Is there any way i can refresh the form or something. I know
zero coding :(

Also, when i try to view the records in a report usin the On Format
event, the code gives me an error message that it doesn't recognize
the field name.

Any help is appreciated.

Thanks again, Matt
Nov 12 '05 #1
2 1629
The generally used method is, for those empty pictures, use code similar to
the code (e.g., copy and modify only slightly) that is used to set the
Picture property, but instead set it to the path and filename of a one-pixel
white image. It'd be something like this (untested aircode):

If IsNull(Me!yourimagefield) Then
Me!imgControlname.Picture = <pathandfileofonepixelimage>
Else
Me!imgControname.Picture = Me!yourimagefield
End If

"Matt" <yo*******@yahoo.com> wrote in message
news:fe**************************@posting.google.c om...
Thank you for trying to help.

I am a newbie trying to learn access. I am creating a database in
access97 with few picture fields in it. After some research I decided
to use the famous "External File" type suggested by Larry Linson.

I decided to go into datasheetview of the table and manually fill up
the directory root for the files. Everything works fine. My problem
here is there are some records which don't have a picture to it. So
when i view the records in a form, those records that don't have a
picture on it are not blank but still hold the previous records
picture. Is there any way i can refresh the form or something. I know
zero coding :(

Also, when i try to view the records in a report usin the On Format
event, the code gives me an error message that it doesn't recognize
the field name.

Any help is appreciated.

Thanks again, Matt

Nov 12 '05 #2
Thank you Larry.
Nov 12 '05 #3

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

Similar topics

8
by: OysterCracker | last post by:
Hi - I've previously used js to swap images on mouseover in a menu. I'm stumped on a different situation and would appreciate some advice. I would like to swap imageA to ImageB when I mouseover...
1
by: Lumpierbritches | last post by:
Thank you in advance for any and all assistance. I'm trying to make it where at runtime my program will allow the introduction of an image. I've tried bound, unbound and images. On the bound OLE...
5
by: ken | last post by:
I had to reinstall Windows 2000 Pro and of course Access 2000. I HAD each record displaying a photo but now it does not show them. The WEIRD thing is that when I upload the database to my...
1
by: Alec | last post by:
Hi All, I am currently using an unbound OLE object to display images stored in a folder. I want to be able to print these images from their normal format (it just happens that these are A4...
1
by: sea | last post by:
I have a form with an unbound control -- how can an user copy and paste a .bmp image into this control? I tried to copy and paste an image by double clicking inside this control but nothing...
4
by: gremlin321 | last post by:
i have a very odd behaving treeview. i use image list with a bunch of icons and as nodes get added to a tree i assign image index to each node. everething works fine, no problems there. now, when i...
4
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property,...
1
by: x taol | last post by:
i am user using access 2000 version. but, the problem is that a image control in a form don't get the jpg file. the method, i wonder. *** Sent via Developersdex http://www.developersdex.com ***
7
by: needin4mation | last post by:
Hi, I have an Access 2002 - 2003 database. I am using Access 2003. Whenever I link an image all it shows is the filename. Not the image. Other versions of Access can link the image just fine. ...
4
by: Prakash | last post by:
I'm developing an HR package which would contain the Employees Photo + upto 3 pages (pictures) of his Passport + pictures of his Driving License and Residence Card. If the user wants to print...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.