Results 1 to 2 of 2
  1. #1
    col5473 is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    1

    Setting fields visible/invisible

    Hello



    I have created a form that contains a combo box with 4 choices. I also have 3 fields which I have set to be invisible. What I want to be able to do is depending on the choice made in the combo box determines which field becomes visible.

    I'm not sure what I'm doing wrong. I'm pretty new to VBA but am quite good with macros and still can't make it work. I have tried setting my field [via] event as got focus, lost focus and change. I can get it to work if I choose the first choice the relevant field becomes visible but if i choose anything else the relevant fields do not become visible and the first field won't go invisible.

    I hope I've made sense. if you need more info feel free to contact me.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I would use the AfterUpdate event of the ComboBox to enforce what you are doing.

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

Similar Threads

  1. Setting Blank Fields to "N/A"
    By AKQTS in forum Reports
    Replies: 6
    Last Post: 07-15-2011, 04:40 AM
  2. Report showing non-visible fields
    By AKQTS in forum Forms
    Replies: 2
    Last Post: 09-21-2010, 09:40 AM
  3. Combo Boxes Visible/Invisible
    By Rick West in forum Forms
    Replies: 2
    Last Post: 07-06-2010, 09:41 AM
  4. Invisible LookUp Data List
    By aaghd in forum Access
    Replies: 3
    Last Post: 07-28-2009, 02:35 PM
  5. Tab only visible when field = x
    By ecpike in forum Forms
    Replies: 7
    Last Post: 06-08-2009, 04:38 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