Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2015
    Posts
    2

    Is this a macro, validation or field condition question

    Not sure what forum this needs to be placed.

    I have a database that has a number of fields. My question is this. I am wanting the most simplest way currently.



    One field is a status field. The status codes are there is a pending code and rest are closed cases. Then there is another field that is a date field. I have a macro setup that is an information dialog box.

    What I am wanting to do is if a status code is pending then database will not allow date field to be filled and the macro dialog box pops up.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    In your form,
    set the txtDate.enabled = false.

    when the user changes the status code, status.AFTERUPDATE event....
    set the txtDate.enabled to true.
    Also the form ON CURRENT event...
    txtDate.enabled = status = "closed"

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

Similar Threads

  1. Replies: 4
    Last Post: 01-12-2015, 12:07 AM
  2. Form field validation question
    By usmcgrunt in forum Programming
    Replies: 1
    Last Post: 03-19-2012, 04:22 PM
  3. where condition within a macro
    By kstyles in forum Reports
    Replies: 3
    Last Post: 04-08-2011, 03:58 PM
  4. Macro Condition
    By eww in forum Programming
    Replies: 5
    Last Post: 08-27-2010, 10:59 AM
  5. Replies: 0
    Last Post: 07-16-2010, 09:06 AM

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