Access World Forums

Access World Forums (https://www.access-programmers.co.uk/forums/index.php)
-   Forms (https://www.access-programmers.co.uk/forums/forumdisplay.php?f=9)
-   -   How to upload images in a form (https://www.access-programmers.co.uk/forums/showthread.php?t=227249)

shishir 05-29-2012 11:35 PM

How to upload images in a form
 
Hello,
I've an employee information table and its form. Every record contains different images.

I've found that people are suggesting to store images on hard drive, not on the database directly. They suggest to store the image link in a text field. I'm agree with them.

But what I didn't find is how end user will upload a new image? Or, remove an existing one?
I want 2 command buttons right below those images that will enable end user to add/remove an image from form of that employee/new employee. When someone will click on the add image, a browser window will appear and he'she will be able to select the image. Access will save it's link itself. While deleting, access will delete its link too and display no photo image.

I've programming experience in C++(but not in VB).
How can I do that?

spikepl 05-30-2012 08:53 AM

Re: How to upload images in a form
 
Google msoFileDialogFilePicker to find the file dialog thing to pick a file. The returned file name you can put into a field of a record and use that to get at the location of a picture. Or clear the field for no picture.

brharrii 05-30-2012 09:33 AM

Re: How to upload images in a form
 
Sorry, I missunderstood the question

:(

I don't have an answer for what you are looking for.

shishir 05-30-2012 03:46 PM

Re: How to upload images in a form
 
Quote:

Originally Posted by spikepl (Post 1159274)
Google msoFileDialogFilePicker to find the file dialog thing to pick a file. The returned file name you can put into a field of a record and use that to get at the location of a picture. Or clear the field for no picture.

I've no programming experience in VB. Can you tell me how to get the job done?
Or any complete resource?

Max D 07-04-2012 04:19 AM

Re: How to upload images in a form
 
This is the common problem while storing images externally. No simple way to upload and manipulate them without intensive programming.

Check our AccessImagine addon, that makes all the work automatically and is users friendly - http://access.bukrek.net/


All times are GMT -8. The time now is 03:26 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World