If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Embed a picture using Code

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-12, 08:32
mcaellis mcaellis is offline
Registered User
 
Join Date: Jan 2012
Posts: 2
Embed a picture using Code

I'm trying to setup a button where someone can embed a picture in a form. The problem I have (at least this case) is that I would like to have the button open up a windows search box, the operator select the file they want and have it automatically drop the file path in the Picture field in the design of the form. Any ideas?
Reply With Quote
  #2 (permalink)  
Old 01-30-12, 08:58
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
forget what its called but you can call up some of the standard windows dialogs to do that.

store the URL to the file not the image itself.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 01-30-12, 09:34
mcaellis mcaellis is offline
Registered User
 
Join Date: Jan 2012
Posts: 2
I appreciate the reply, but I'm not sure how that helps.
Reply With Quote
  #4 (permalink)  
Old 01-30-12, 09:46
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
well yoiu use a standard windows dialog to display a drive / file object
you specify what file types are visible int eh file dialog
you examine the users respnse to see if they have selected an image file to be inserted into an image control
if so then you insert the image into the control

having found the image you then store the URL to that image in the DB so in the forms on current event you set or unset the image as required.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On