Results 1 to 2 of 2
  1. #1
    sbrem00 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    7

    Conditional format Main form field from subform data

    Hi All,



    I have an access database which has a subform that holds dates of community groups such as the insurance renewal date. I would like to have a message displayed on the main form when this date has expired using conditionlal formating to change the colour of a text box with a default value.

    Then once a new insurance date is entered (on a seperate field) it will ignore the old one and use the new date for the condition formatting.

    Does anyone know if this is possible?

    Thanks.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    well depending on what you mean in your post;

    it is easy to conditional format a date field - all your Access textbooks cover this - put the form into design view, right click on the field - and then set up the condition (which would be less than Now())

    you mention a message display - - which I interpret as conditional too - and so it is not clear if you want a generic label toggled visible or a specific messagebox displayed. Either is possible. If the dates are all in a subform then one might use a DCount of that record set just to see if any records are expired relative to Now()....or a DLookup. These are two methods of VBA you might want to explore as a technique to trigger your message.

    Hope it helps.

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

Similar Threads

  1. copy data from a subform to the main form
    By declanfogarty in forum Programming
    Replies: 1
    Last Post: 06-23-2011, 05:31 AM
  2. Replies: 9
    Last Post: 12-15-2010, 01:44 PM
  3. Replies: 1
    Last Post: 11-13-2010, 12:57 PM
  4. Replies: 3
    Last Post: 11-05-2010, 03:10 PM
  5. Replies: 2
    Last Post: 03-31-2010, 01:56 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