Results 1 to 6 of 6
  1. #1
    noweyout is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    10

    How do I write to a table from text box


    I have a combo box with several columns in it. When I select an item in the combo box, it will populate text boxes below.

    I use the following to fill in the text boxes:

    =[cboComboBox].[column](1)

    Once the information is in the text box, how do I get that information to write to a table?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Normally your Form would be bound to a query/table as would the controls on it. Then you already have what it takes to "write to a table" (sort of).

  3. #3
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I would bind the text box to a field and use the after update event of the combo box to "push" the value into the text box.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    More info, including a caution against it:

    http://www.baldyweb.com/Autofill.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    noweyout is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    10
    It worked out perfectly! Thank you everyone! I don't quite get why I should be careful when doing this though. I will look into this further.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The warning means you would just need to read up on Normalization. If you are satisfied then go ahead and use the Thread Tools and mark this thread as Solved.

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

Similar Threads

  1. Replies: 3
    Last Post: 02-01-2011, 07:15 AM
  2. Replies: 16
    Last Post: 08-19-2010, 01:40 PM
  3. Replies: 1
    Last Post: 06-24-2010, 08:08 AM
  4. ODBC table read to blank Access table write
    By dibblejon in forum Access
    Replies: 2
    Last Post: 03-10-2010, 08:39 AM
  5. Write text to text box on a form
    By DKY in forum Programming
    Replies: 0
    Last Post: 10-08-2008, 11:34 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