Results 1 to 4 of 4
  1. #1
    samo1215 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    3

    Form Help

    I am trying to design some forms to make it easy for novice access users to input data. The problem I am having is I would like to limit the fields that a user sees depending on their selection of a dropdown box.

    For instance, I have a field entitled "Events". If a person selects "Phone Call" from the "Events" drop down menu, I want to hide a couple of fields such as "Location", "Bid" and "Hire" so that there are not accidently completed. Is there a way to do this in acccess and if so, how?

  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,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    samo1215 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    3
    Thank you for the response, I really appreciate the help. Your solution looks like it would work but admittedly, I am pretty new to Access and am not sure what property field to enter the code into.

    Also, is there a way to then hide the blank fields when I generate a report with this data?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    This may help with the first:

    http://www.baldyweb.com/FirstVBA.htm

    For the report, you can use the same technique in the format event of the section containing the controls. Since presumably they'll be empty anyway, you can use the Can Grow/Can Shrink properties of the textbox to impact the space taken up on the report.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

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