Results 1 to 2 of 2
  1. #1
    jlclark4 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Dec 2010
    Location
    North Carolina
    Posts
    155

    Requring Fields based on Combo Box

    I am trying to make certain controls/fields requried and a combo box has a certain thing selected. I was attempting something like:



    Code:
    If Me.Category.Value = "Activations - PostPay" Then
    Me.batchnumber.Required = True
    But that does not work of course.

    Does anyone have any ideas?

  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
    I don't know that you can change the required property like that. I'd use the before update event of the form:

    http://www.baldyweb.com/BeforeUpdate.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 1
    Last Post: 02-25-2011, 10:03 AM
  2. Replies: 1
    Last Post: 01-10-2011, 12:25 AM
  3. Replies: 5
    Last Post: 01-02-2011, 10:09 AM
  4. Replies: 2
    Last Post: 12-07-2010, 12:32 PM
  5. Replies: 1
    Last Post: 08-26-2009, 10:45 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