Results 1 to 2 of 2
  1. #1
    xuxa is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    1

    dynamically creating a grid with text boxes in access like a table in excel


    I want to create a grid dynamically which contains text boxes in access. The number of columns and the row in the grid will also be created dynamically based on the value entered by the user. So if you imagine a table in excel or word that has rows and columns I want to replicate the same in access. I am not sure what is the best way to do it. And i then need to save all the data entered by the users in those text boxes in the database. Please help.

  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,521
    Generally not done. For one thing, there's a limit to how many controls can be added to a form over its life, and deleting them doesn't reset that. Secondly, if you give users an mde/accde or they have the runtime version of Access, I don't think they can change the design of the form, even via code (I could be wrong on the last bit).

    Perhaps if you give us an idea of what you're trying to accomplish, we can give other ideas. One is to use a continuous or datasheet form or subform that will grow dynamically to accept however many records the user wants to add.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 6
    Last Post: 05-10-2012, 10:32 AM
  2. Replies: 5
    Last Post: 02-24-2012, 11:02 AM
  3. Add Excel-style comments to controls grid
    By ScottEnsink in forum Forms
    Replies: 3
    Last Post: 02-15-2012, 01:50 AM
  4. Creating a Form with 2 combo boxes and a text box
    By smorris4804 in forum Access
    Replies: 1
    Last Post: 06-17-2011, 02:06 PM
  5. Creating Report using Text boxes & db fields
    By Nancy J. in forum Reports
    Replies: 13
    Last Post: 07-20-2009, 07:09 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