Results 1 to 3 of 3
  1. #1
    nikapo is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Posts
    1

    How do I create emerging boxes in a form depending on the selection on another box.

    Hello,

    I want to create a form in witch, whenever I select a status, will emerge a secondary cell or cells,
    depending the first choice, where I could edit certain other values.

    Specifically, in the first cell I will be referring whether the cell will have a specific value (A or B).
    When A is selected two different boxes must be opened exactly under the first box. If B is selected
    then just one box is needed.



    I also want to mention that on the table must appear as one.
    Think of it as an ms excel form where next to values A or B a C value appears with two cells under it
    or a merged cell with a single value.

    My first thought was to set, on the B value case, the second secondary cell inactive but this is also
    difficult for me.

    Thank you.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    user chooses option in a combo box A or B

    Code:
    sub  cboBox_afterupdate()
       txtBox1.visible = true
       txtBox2.visible= cboBox = "B" 
    end sub

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    @ nikapo,

    Access is not like Excel. You need to store your data in tables. These tables need to have specific columns/fields defined as Key fields. Your tables will have relationships based on certain Key fields. Tables in Access are not "flat" like and Excel spreadsheet.

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

Similar Threads

  1. Replies: 9
    Last Post: 08-25-2014, 05:09 PM
  2. Replies: 2
    Last Post: 05-29-2014, 09:58 PM
  3. Replies: 2
    Last Post: 09-10-2013, 09:10 AM
  4. Replies: 5
    Last Post: 08-08-2012, 01:30 PM
  5. Replies: 0
    Last Post: 12-02-2010, 11:59 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