Results 1 to 5 of 5
  1. #1
    Monterey_Manzer is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    164

    Changing background image by date range

    Hello All,



    I have been taking a few stabs at this but I can't seem to find a clear example of what I'm trying to do. Here is what I want to achieve and my thought process thus far:

    I am generating a form that coworkers will use to track information on customers. The urgency of this information, and the protocols necessary, are dependent on a date that is associated with the customer. Now of course I have included a combo box on the form that will display the date but I'm trying to make this process more idiot proof. I am trying to define "seasons" by ranges of dates (e.g. something like Spring = #1/1/2013# - #6/1/2013#). I then want to change the background image on the form depending on the date displayed with each record. Is this ridiculous or something that would be fairly feasible?

    Cheers,
    Monterey_Manzer

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It wouldn't work on a continuous or datasheet form, but it single view it shouldn't be too difficult. You'd test the date and set the Picture property of the form in the current event. You could have the date ranges and paths to images in a table, or hard-code it as you see fit.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Monterey_Manzer is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    164
    I can understand the logic behind setting the dates and associating them with the image file, I'm just not certain of how to do it. Could you suggest any tutorials?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Can't think of one offhand. If you use a table, you'd open a recordset or use DLookup to find the path appropriate to the date on the record, then use that to set the picture:

    Me.Picture = "YourPathHere"
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Monterey_Manzer is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    164
    I'll give it a shot and let you know how it comes out.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Background Image on Tabbed Form
    By Keeper in forum Access
    Replies: 3
    Last Post: 05-01-2012, 07:57 PM
  2. Replies: 3
    Last Post: 04-25-2012, 07:43 AM
  3. background image on Access 2010 form
    By lkspitz in forum Forms
    Replies: 2
    Last Post: 06-16-2011, 08:35 AM
  4. Changing scrolling field background
    By JeffG3209 in forum Access
    Replies: 0
    Last Post: 05-10-2011, 08:56 PM
  5. Issue with background image on form
    By sbrookebounds in forum Access
    Replies: 3
    Last Post: 01-20-2011, 02:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums