Results 1 to 4 of 4
  1. #1
    scottm0690 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2020
    Posts
    7

    Auto Collapsing text box


    I am looking for a way that will allow me to click on a text box and it auto expands out with more info and then will collapse when done. I have a form with a text box that has a short description on it. I want to be maybe click a "+" or something that will expand the box out so it will show a full description and then I press a "-" to collapse it back. Not sure all I would need to make this happen or even if it is possible. I tried the Controltips box but it is limited to 255 characters. Thanks,

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    use a checkbox to expand:
    Code:
    sub chkExpand_afterupdate()
    if chkExpand.value then 
      txtBox.width = 4000
    
    txtBox.width = 2000 else
    txtBox.width = 500 txtBox.width = 100
    endif end sub

    end sub

  3. #3
    scottm0690 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2020
    Posts
    7
    Thanks for the quick response, do I create a checkbox and then put the code in the on click event? Sorry to ask, I am new and trying to learn this. I have an existing text box that I wanted to do it on, if that is possible. Thanks,

  4. #4
    scottm0690 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2020
    Posts
    7
    This is kind of what I want to do. Or something like this.

    Looks like this:
    Click image for larger version. 

Name:	Snip20200420_2.png 
Views:	2 
Size:	5.5 KB 
ID:	41630

    Then you press the + and it does this:

    Click image for larger version. 

Name:	Snip20200420_3.png 
Views:	2 
Size:	23.6 KB 
ID:	41631
    This is an old web app we have that is very minimal, but this is the last thing I need to get in my DB before moving on to reporting. Thanks,

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

Similar Threads

  1. Replies: 5
    Last Post: 06-18-2017, 09:17 AM
  2. Replies: 1
    Last Post: 05-15-2013, 09:09 PM
  3. Auto size text
    By daltman1967 in forum Access
    Replies: 4
    Last Post: 01-31-2012, 09:11 AM
  4. Collapsing Duplicates to 1 Row??
    By bmschaeffer in forum Reports
    Replies: 2
    Last Post: 10-10-2011, 11:44 AM
  5. Replies: 15
    Last Post: 04-01-2011, 11:41 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