Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > General

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-02-2010, 06:18 PM
duberry duberry is offline
Registered User
 
Join Date: Mar 2010
Posts: 5
duberry is on a distinguished road
Default image for records

I am making an address book application and I have figured out how to add images to each record for a "profile pic". What I want is; when the user creates a new contact I want a default image to display in the image box (I have the image). I am quite good in Access, but not familiar with VBA code (If I even need VBA code). I hope I explained this well enough and any help would be appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 03-02-2010, 06:35 PM
ajetrumpet ajetrumpet is offline
Banned
 
Join Date: Jun 2007
Location: Universe - Local Group - Milky Way Galaxy - Orion Arm
Posts: 5,647
ajetrumpet has a spectacular aura aboutajetrumpet has a spectacular aura about
Send a message via MSN to ajetrumpet Send a message via Yahoo to ajetrumpet
Re: Default image for records

Quote:
Originally Posted by duberry View Post
I am making an address book application and I have figured out how to add images to each record for a "profile pic". What I want is; when the user creates a new contact I want a default image to display in the image box (I have the image). I am quite good in Access, but not familiar with VBA code (If I even need VBA code). I hope I explained this well enough and any help would be appreciated.
i don't know about a default image property for forms, but there could be one. you could use a picture local URL in the picture property on the new record() event of your form. or how about an OLE object in a table somewhere that you could refer to? that might work as well. how is the profile pic field set up in your app right now? local URL in the picture property ? OLE's I think have to be bitmaps. i might be wrong though
Reply With Quote
  #3  
Old 03-03-2010, 05:46 AM
duberry duberry is offline
Registered User
 
Join Date: Mar 2010
Posts: 5
duberry is on a distinguished road
Re: Default image for records

I used an attachment box, I think that's what it's called, and has arrows to browse the attached images and an option to attach a new image. I just need a way to set a default image to it.
Reply With Quote
  #4  
Old 03-03-2010, 06:52 AM
vbaInet vbaInet is offline
AWF VIP
 
Join Date: Jan 2010
Location: U.K.
Posts: 6,324
vbaInet has a spectacular aura aboutvbaInet has a spectacular aura aboutvbaInet has a spectacular aura about
Re: Default image for records

ajetrumpet is right there. Using an image control for this you could change the image on the form's BEFORE INSERT event which triggers once a new record is created. I think it accepts bmp, jpg and ico, and I think there's a workaround for gif.
Reply With Quote
  #5  
Old 03-03-2010, 07:55 AM
duberry duberry is offline
Registered User
 
Join Date: Mar 2010
Posts: 5
duberry is on a distinguished road
Re: Default image for records

I used an attachment box, I think that's what it's called, and has arrows to browse the attached images and an option to attach a new image. I just need a way to set a default image to it.
Reply With Quote
  #6  
Old 03-03-2010, 08:06 AM
vbaInet vbaInet is offline
AWF VIP
 
Join Date: Jan 2010
Location: U.K.
Posts: 6,324
vbaInet has a spectacular aura aboutvbaInet has a spectacular aura aboutvbaInet has a spectacular aura about
Re: Default image for records

What is the purpose of using an attachment control?

Select the control and show a (blown-up) print screen of the control, and the Properties Sheet.
Reply With Quote
  #7  
Old 03-04-2010, 10:22 AM
duberry duberry is offline
Registered User
 
Join Date: Mar 2010
Posts: 5
duberry is on a distinguished road
Re: Default image for records

Okay I got it working. Thanks for the help.
Reply With Quote
  #8  
Old 03-04-2010, 10:23 AM
vbaInet vbaInet is offline
AWF VIP
 
Join Date: Jan 2010
Location: U.K.
Posts: 6,324
vbaInet has a spectacular aura aboutvbaInet has a spectacular aura aboutvbaInet has a spectacular aura about
Re: Default image for records

No worries. What approach did you take?
Reply With Quote
  #9  
Old 03-04-2010, 01:10 PM
duberry duberry is offline
Registered User
 
Join Date: Mar 2010
Posts: 5
duberry is on a distinguished road
Re: Default image for records

I'm not quite sure. This was a team project and my partner ended up figuring it out. I know he used the property sheet and set the default image. I felt stupid after he told me that.
Reply With Quote
  #10  
Old 03-04-2010, 01:16 PM
vbaInet vbaInet is offline
AWF VIP
 
Join Date: Jan 2010
Location: U.K.
Posts: 6,324
vbaInet has a spectacular aura aboutvbaInet has a spectacular aura aboutvbaInet has a spectacular aura about
Re: Default image for records

Then you've used the attachment control for that. You should test it when it's bound.

Have fun with the rest of your (team) project
Reply With Quote
Sponsored Links
Reply

Tags
default, image, picture, record

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Dir function - not working? Splinters Modules & VBA 7 01-08-2009 07:02 PM
i've got a little 'add image' problem too... wiklendt Forms 7 12-21-2008 11:11 PM
Need to start new form entry with default image but also be able to modify them hunterw General 2 06-16-2008 06:44 AM
Default Image Viewer h1000 Forms 2 03-08-2006 10:17 AM
Trap Default Access Error: Can't load image bhammerstrom Forms 0 04-30-2004 10:47 AM


All times are GMT -8. The time now is 09:40 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World