Results 1 to 6 of 6
  1. #1
    SpdRacerX is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    40

    Enable Field off Text Box

    I did some research on this topic but it's not seeming to work in my form.

    I have a form with various fields.



    I need Field [Reason] to be enabled if Field [Over] = "Yes"

    I've tried many variants of this the AfterUpdate of Field [Over] but for some reason it's not working.

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Do you have an on load event for the form that disables the Reason Field?

  3. #3
    SpdRacerX is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    40
    Tried that but it's still not working.

    I have the following in the Load Form:

    Private Sub Form_Load()
    Me.Reason.Enabled = False
    End Sub

    And the following in the After-Update:

    Private Sub Over_AfterUpdate()
    If Me.Over.Value = "Yes" Then
    Me.Reason.Enabled = True
    Else
    Me.Reason.Enabled = False
    End If
    End Sub

  4. #4
    SpdRacerX is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    40
    My fields are populated from a query if that helps...

  5. #5
    SpdRacerX is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    40
    I created a Text Box where I can manually enter the words "Yes" and it worked off of that Text Box.
    But when I change the Control Source of the Text Box to Equal [Over] then it doesn't.
    Is the only way it will work is off of a Manual-Entry Text Box?

  6. #6
    SpdRacerX is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    40
    Basically the purpose of the [Reason] field is to enable the user to enter a reason that the trouble ticket was over the required alloted time.
    The [Over] field works where if the time is over then it equals "Yes" or "No" if it is not.
    Now I need the [Reason] field to be enabled if the [Over] field is equal to "Yes" so that they may list the reason why.

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

Similar Threads

  1. Include Text in text box with the field
    By TinaCa in forum Reports
    Replies: 2
    Last Post: 10-05-2011, 01:42 PM
  2. Enable or Disable Field in Forum
    By lolos66666 in forum Forms
    Replies: 5
    Last Post: 03-13-2011, 05:30 PM
  3. Function to Enable/Disable Field
    By swalsh84 in forum Programming
    Replies: 5
    Last Post: 11-04-2010, 02:48 PM
  4. Replies: 2
    Last Post: 05-05-2010, 02:52 PM
  5. Split text field into two text fields
    By Grant in forum Access
    Replies: 6
    Last Post: 01-31-2008, 05:52 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