Results 1 to 2 of 2
  1. #1
    jackV is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2014
    Posts
    1

    Add textbox button in a form

    Hi everyone,



    I have a question and have searched throughout the internet. I work for a food company and we have to create product specification information sheets. At times we bring in completed food products and repackage into smaller quantities. The issue that arises is we then have to use our vendors product specification information sheets and pull certain information from these sheets. I have created a table and form with a lot I mean a lot of textboxes so the information can be added. My problem is that I do not want to clutter up a form with all the fields that can be filled in. As with each different food product they may have some indicators, no indicators or will have many indicators.

    I was wondering if there is a way to create a button using VBA that would dynamically add another textbox so a user could fill in the next field of that particular description group, or even on an after update, ask the user if there is more info to be added and on a Yes click would add a textbox for the next field available?

    I have been at this and I have got myself so wound up on this that I maybe not seeing the solution that might be right in front of me.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Dont ADD the text box, have it already on the form but invisible.

    sub on_CLICK()
    txtName.visible =not txtName.visible

    OR
    open another form just for this entry that has all the sub-entries needed and not clutter up the main form.

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

Similar Threads

  1. Which Button triggered the afterdate of a textbox
    By sneuberg in forum Programming
    Replies: 6
    Last Post: 09-10-2014, 08:25 AM
  2. Replies: 7
    Last Post: 06-05-2014, 07:30 AM
  3. Find a record using a TextBox & Button
    By ledis in forum Access
    Replies: 6
    Last Post: 02-02-2014, 02:47 PM
  4. Replies: 2
    Last Post: 01-08-2014, 05:18 PM
  5. Use cmd button to fill textbox
    By shariq1989 in forum Forms
    Replies: 1
    Last Post: 07-19-2012, 08: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