Results 1 to 3 of 3
  1. #1
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115

    greying the entire row in a continous form

    Hi Guys

    I am using this code to disable a control on a form a split form to be precise:



    Private Sub enable()
    If IsNull(Me.ORDER) Then
    Me.BUY.Enabled = True
    Else
    Me.BUY.Enabled = False
    End If
    End Sub


    What I am looking for is that in case the ORDER control is not empty, then I want to gray color the entire row.
    Any thoughts on that?

    Regards

    Webisti

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    This is really simple, with Conditional Formatting. In Form Design View

    1. Hold down <Shift> and Left Click on each Control you want Enabled/Disabled, in turn.
    2. In pre-2007, on the Menu go to Format - Conditional Format
    3. In 2007 and later, on the Ribbon, click on the Design Tab, then Click on the Conditional Icon
    4. Under Condition1 use the Down Arrow to select Expression Is
    5. In the next box type in Not IsNull([ORDER])
    6. Click on the Enabled icon (last icon to the right)
    7. Click OK

    Linq ;0)>

  3. #3
    MarvinM's Avatar
    MarvinM is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Posts
    30
    DataPig has a good 4½ min video tutorial on conditional formatting you may like:
    http://www.datapigtechnologies.com/f...rmatting1.html

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

Similar Threads

  1. continous form cant bind a field
    By MIchael Briggs in forum Forms
    Replies: 2
    Last Post: 11-26-2013, 10:37 AM
  2. Continous Form with Combo Boxes
    By dhogan444 in forum Forms
    Replies: 3
    Last Post: 07-18-2012, 08:04 AM
  3. Looping through records in a continous form
    By accessnihon in forum Forms
    Replies: 3
    Last Post: 01-04-2012, 01:04 AM
  4. Checkbox in continous form
    By senthilrg in forum Access
    Replies: 11
    Last Post: 12-05-2009, 08:49 AM
  5. Horitontal Continous Form?
    By Lawrence in forum Forms
    Replies: 1
    Last Post: 07-21-2009, 03:06 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