Results 1 to 6 of 6
  1. #1
    gammaman is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    56

    add row of textboxes dynamically

    I am fairly new to using forms in MS Access and was just wondering if the following concept can be done.




    Let's say I have a table, each row containing 5 cells, each cell containing a TextBox

    By default, I want only 1 row showing... but I want to have a Button that allows me to add an additional row every time it's clicked.



    Is this something that can be done using VBA? Some other way?

  2. #2
    Skarvion is offline Novice
    Windows 10 Access 2013
    Join Date
    Jan 2016
    Posts
    13
    Hi Gammaman,

    Maybe you're talking about inserting a table to a form, which basically using an unbound object frame
    Or do you want it to remain "form-like" using textboxes?

  3. #3
    gammaman is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    56
    It should be a form with text boxes. My current form has 5 text boxes which are all bound to the form. So, I am looking for a way to have multiple rows of textboxes. So say I have some button and add two additional rows of textboxes. When I fill out the form, it should insert 3 rows of data to the table.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Perhaps you could tell us in plain English what your application is about, and why you think 3 rows of text boxes will insert 3 records. I'd just like to get more info.

    Good luck.

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Maybe change the form Default View from "Single Form" to "Continuous Forms".



    BTW, "cells" and "rows" are Excel concepts. In Access, it is "controls" and "records".

  6. #6
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by gammaman View Post

    ...My current form has 5 text boxes which are all bound to the form...

    ...When I fill out the form, it should insert 3 rows of data to the table...
    If the first statement is correct...and all Controls are Bound...the second will occur automatically!

    With a Continuous View Form (as suggested) or a Datasheet View Form, there is no need to have a Command Button to add New Records...one will always appear below the last entered Record.

    Linq ;0)>

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

Similar Threads

  1. Need to dynamically update columns
    By raynman1972 in forum Programming
    Replies: 7
    Last Post: 06-21-2012, 06:14 PM
  2. Dynamically set the row source of a combobox???
    By Richie27 in forum Programming
    Replies: 2
    Last Post: 06-13-2012, 09:35 AM
  3. Replies: 2
    Last Post: 04-21-2012, 11:17 PM
  4. navigate between forms dynamically
    By rohini in forum Forms
    Replies: 17
    Last Post: 03-10-2012, 12:47 PM
  5. Formating Textboxes
    By desibabu90 in forum Forms
    Replies: 6
    Last Post: 08-02-2011, 07:48 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