Email Message from FoxStudent:
Subject: add picture
Thank u for the advice I had noticed that the database was getting
very large before it got corrupted. So what do u suggest I do, have a
text field in order to store the address and then allow the user to
click on a button if they want to display a picture for a given
record. The only reason I suggest using a button instead of coding
into a form method is to allow the user to browse records faster. If
so how would I allow a user to first save the address and secondly
display the picture at that address?
I am sorry for the bother I am probably just a way out of my league.
I am a student doing a BEng Honours in Software Engineering who is
trying to make a bit of extra cash.
Thank u
Grainne
Ireland
Grainne,
The button idea sounds like a good idea. I had a personnel database that had room for a small picture of the employee. I created a sub-directory below the database and put all of the images in there. In the table where I stored the employee information, I had a field that had the complete path (C:\DATABASE_DIRECTORY\IMAGES\EMP01.JPG) of the image to display. I also created a "No Picture Available" image (black square image with words saying so) and would default the value of that text field to that. Because it was a small image, it loaded rather quickly, but your images may be larger, so I think the button could be a good idea.
I put an invisible button on the form the same size as the image. If the user wanted to change the image, they could click on it and using the ONCLICK event, I prompted them for the address of the new image file and stored that in the record. I would send you a copy of that database as an example, but that was at my last job and I don't have access to it any more.
Hope that helps. If you have any further questions, feel free to ask, but please post them to the forum. The reason I ask this is that not only does this help you, but it may help someone else with the same problem. Terry M. Hoey
th3856@txmail.sbc.com
Ever notice that by the time that you realize that you ran a truncate script on the wrong instance, it is too late to stop it?