Results 1 to 4 of 4
  1. #1
    vazdajic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    95

    Add Multiple Values To A Textbox

    Hello there.. Please help with the situation below:



    Click image for larger version. 

Name:	Add Multiple Values To  A Textbox.jpg 
Views:	27 
Size:	150.9 KB 
ID:	28971
    Attached Files Attached Files

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Can't be done with existing design.

    If you have an "M" entered in "Asset_01" because there are more than 1 assets (lets say there are 5 assets), what should be put in "Asset_01" when you delete all other assets? Remember, "Asset_01" now has a "M" in it. The "real" asset would be unknown.

    Why not just add the 4 other asset controls to the first form?
    (even though the table is not normalized??)


    You really should read about normalization.
    See
    What is Normalization?
    =======================
    What Is Normalization, Part I: Why Normalization? http://rogersaccessblog.blogspot.com...on-part-i.html
    What Is Normalization, Part II: Break it up. http://rogersaccessblog.blogspot.com...n-part-ii.html
    What Is Normalization: Part III: Putting It Back Together http://rogersaccessblog.blogspot.com...-part-iii.html
    What is Normalization: Part IV: More Relationships http://rogersaccessblog.blogspot.com...n-part-iv.html
    What Is Normalization: Part V: Many-to-Many Relationships http://rogersaccessblog.blogspot.com...on-part-v.html

    Read the tutorials and take the time to work through them at
    http://www.rogersaccesslibrary.com/forum/forum46.html



    BTW, "Name" is a reserved word in Access and shouldn't be used as an object name. Also shouldn't have spaces in object names.

  3. #3
    vazdajic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    95
    Hello there.. I appreciate the answer but it can be done as I am using that piece of code but in the database which has visual basic locked so I cannot see the code. that database is created by Intergraph and I am not allowed to view/touch/modify the code..

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Your form design is based on normalization, your table is not. I suggest that you choose one or the other. If you keep your table design as it is then there is no point in being so fancy. Your table has 5 asset fields, add them all to the form so the user can enter them there. There is no need for the extra form as "multiple" is not true, there is a fixed number they can enter.

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

Similar Threads

  1. Replies: 5
    Last Post: 02-04-2017, 07:34 AM
  2. Replies: 8
    Last Post: 01-31-2017, 06:14 PM
  3. Multiple Values in textbox
    By frksdf in forum Forms
    Replies: 10
    Last Post: 07-14-2014, 11:41 AM
  4. Replies: 2
    Last Post: 08-12-2013, 05:47 PM
  5. Insert Multiple Checkbox Values to one Textbox
    By dshillington in forum Programming
    Replies: 1
    Last Post: 12-28-2011, 10:10 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