Results 1 to 4 of 4
  1. #1
    rjstewart is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2014
    Posts
    2

    Displaying and fields on field changes


    Code:
    Private Sub ACActivationType_Change()
    If Form.frmFieldTrigger.ACActivationType.Value = "Field Value Modified" Then
    Form.frmFieldTrigger.ACTtriggerFieldID.Visible = True
    Form.frmFieldTrigger.ACTMilestone.Visible = False
    Else
    Form.frmFieldTrigger.ACTtriggerFieldID.Visible = False
    Form.frmFieldTrigger.ACTMilestone.Visible = False
    End If
    End Sub
    What I am trying to accomplish is to show a field or hide a field if the values dont equal whats listed.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,952
    What is the issue? Are you doing this on a form in continuous or datasheet view? This code won't work nice with those because setting property of control affects all instances of control, every record will reflect the setting.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    rjstewart is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2014
    Posts
    2
    on a form.also the fields are found in the same table of records. i only want to display one or multiple items on the form. If the meet the requirements stated?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,952
    Again: Is the form in continuous or datasheet? Controls are in detail section? Code won't work satisfactorily.

    However, can use Conditional Formatting to Enable/Disable textbox or to change colors.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Fields displaying when not supposed to
    By Mik2045 in forum Forms
    Replies: 9
    Last Post: 10-01-2013, 01:37 PM
  2. Only displaying non-null fields in query??
    By skier4life in forum Queries
    Replies: 1
    Last Post: 06-24-2013, 08:53 AM
  3. Displaying form fields
    By sakthivels in forum Forms
    Replies: 5
    Last Post: 05-25-2009, 07:52 AM
  4. form not displaying fields
    By ashiers in forum Forms
    Replies: 0
    Last Post: 09-19-2008, 07:02 AM
  5. Replies: 1
    Last Post: 10-26-2007, 07:29 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