Results 1 to 8 of 8
  1. #1
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727

    Alternate Background

    I'm looking for an option to change the background on some of my forms but I only want it for the user to see. I don't want it to print. Does anyone know which option to use for this?

  2. #2
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    When you select print/print preview the form will show as seen, with whatever bg you have.
    What you could do is use vba to

    1. hide form me.visible = false
    2. change bg color me.detail.backcolor = "whatever"
    3. print form docmd.print "form name", acpreview
    4. restore bg color me.detail.backcolor = "whatever"
    5. unhide form me.visible = true

    this way the user won't see the changes
    the code would go in the on click event of your print button.

  3. #3
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727
    That seems like a lot of work for what I need. I do see an option when I right click on the detail section of the form in design view that there is an alternate fill/back color option. Do you know what this is used for?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    That's to create alternating background for each record so that on datasheet or continuous form it's easier to distinguish each record.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    It may be a lot of work, but it may be your only solution.

  6. #6
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    One more option (easier for bound form)-
    Create an identical form with desired background and use it for printing.

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    Or print a report.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727
    Ahh. Thanks guys for all the replies.

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

Similar Threads

  1. Turn off alternate row color
    By dombrowb in forum Access
    Replies: 3
    Last Post: 05-06-2015, 08:37 AM
  2. Alternate row color for Group
    By Rhubie in forum Reports
    Replies: 7
    Last Post: 01-28-2013, 11:53 AM
  3. Alternate Back Color Property
    By RayMilhon in forum Reports
    Replies: 5
    Last Post: 11-15-2012, 06:20 PM
  4. Alternate Row Color
    By mdaneman in forum Access
    Replies: 1
    Last Post: 06-21-2012, 12:39 AM
  5. Alternate Row color get rid of
    By gg80 in forum Forms
    Replies: 3
    Last Post: 02-18-2011, 07:43 PM

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