Results 1 to 4 of 4
  1. #1
    Rafegh is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jul 2014
    Posts
    13

    making some text-boxes invisible in tabular form based on the value of one field


    Dear all,
    hi

    I have designed a tabular form to enter records into a table. I have so many fields in each record, but some of them are not needed to be filled according to the value of one of the fields. how can I make these unneeded fields not visible based on the value of one field?
    I have tried to write a code for that in vba and it works, but the problem is that when i use this code, the fields disappear in all of the records shown in tabular form based on the value of the conditioning field in the first record.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,537
    Can you show us your code.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    No.
    tabular fields are either on or off for all recs. Not some.

  4. #4
    Rafegh is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jul 2014
    Posts
    13
    This is my code:
    If LayerType.Value = "Subbase 1" Then


    BitumenType.Visible = False
    Label62.Visible = False
    Label63.Visible = False
    Label64.Visible = False
    Label65.Visible = False
    Label66.Visible = False
    Label67.Visible = False
    Label71.Visible = False


    BitumenPercent.Visible = False
    Strength.Visible = False
    Flow.Visible = False
    Void.Visible = False
    VFA.Visible = False
    Text70.Visible = False


    End If

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

Similar Threads

  1. Replies: 9
    Last Post: 06-04-2014, 10:45 AM
  2. Making a Command Buttong Visible/Invisible
    By Lupson2011 in forum Forms
    Replies: 3
    Last Post: 02-16-2012, 12:03 PM
  3. Tabular form text box colors
    By avarusbrightfyre in forum Programming
    Replies: 3
    Last Post: 03-01-2011, 12:25 PM
  4. Making subform field visible/invisible
    By Snufflz in forum Forms
    Replies: 3
    Last Post: 01-17-2011, 05:30 AM
  5. Replies: 15
    Last Post: 09-18-2010, 01:19 PM

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