Go Back   Access World Forums > Microsoft Access Discussion > Forms

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 11-12-2015, 08:18 AM   #1
Chamleon
Newly Registered User
 
Join Date: Nov 2015
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Chamleon is on a distinguished road
Setting a default value for an image

Hi,

I am making a form to display product details and images. Most products have 1-6 images and rather than having multiple image fields remotely linked to the other product views, I have one image field and 6 fields from my table containing the image location. Next to those fields are buttons that when clicked update the image field. My problem occurs when I am changing records/products, which ever image was last clicked still remains in the image field. I would like the image field to always show the image from the first field when changing records/products, yet still have the buttons for fields 1-6 function.

Any help would be much appreciated.

Chamleon is offline   Reply With Quote
Old 11-12-2015, 09:58 AM   #2
Minty
AWF VIP
 
Minty's Avatar
 
Join Date: Jul 2013
Location: UK - Wiltshire
Posts: 6,435
Thanks: 165
Thanked 1,738 Times in 1,707 Posts
Minty is a jewel in the rough Minty is a jewel in the rough Minty is a jewel in the rough
Re: Setting a default value for an image

You would need to use the On_Current event for the form to set the image back to the 1st one for the selected record.
__________________
If we have helped please add to our reputation - click the scales symbol on the left, tick 'I approve' and leave a comment.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Minty is offline   Reply With Quote
The Following User Says Thank You to Minty For This Useful Post:
Chamleon (11-12-2015)
Old 11-12-2015, 10:45 AM   #3
Chamleon
Newly Registered User
 
Join Date: Nov 2015
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Chamleon is on a distinguished road
Re: Setting a default value for an image

Thank you! Can't believe I missed something so simple.

Chamleon is offline   Reply With Quote
Reply

Tags
control source , default value , form , image

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting a default image on a form bfgweb Forms 10 10-24-2012 10:13 AM
Default Image Viewer h1000 Forms 2 03-08-2006 11:17 AM
Changing toolbar button setting from "Default Style" to "Image and Text" in VBA KeithWilliams Forms 0 10-20-2004 02:14 AM
Default Image SteveClarkson Modules & VBA 4 12-24-2003 06:55 AM
After Setting a background Image SRN Reports 1 02-28-2003 08:26 PM




All times are GMT -8. The time now is 11:14 AM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post


Sponsored Links


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