Results 1 to 4 of 4
  1. #1
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283

    storing values into text box to table

    hello,



    I have a table called Group and a field called ID and a text box named Text7. I was wondering how on a form how I can input data into a text box and have a button save that data to that field in my table.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The easiest approach is to bind the form to table and bind textbox to field. Value entered into textbox passes directly to field in table. No button and no code needed. But since you show "Advanced Beginner" in your profile, you should already be aware of this basic Access functionality. So exactly what are you trying to do? Why do you need code to save input?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283
    You don't have to ignorant. I just thought there was an easier way like using the OpenDialogue approach and when you select the file there was a way to have the name stored in a field. A different way than using the textbox technique.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Select what file? Your original post says nothing about selecting a file. Yes, code behind command button can open FileDialog, grab the selected file or folder name and save into record. Fairly common topic. https://www.accessforums.net/program...ice-48264.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Storing actual values in a table, or the ID/key field?
    By N1755L in forum Database Design
    Replies: 2
    Last Post: 04-30-2014, 07:09 PM
  2. Storing form text field to database
    By SlotMechanic in forum Forms
    Replies: 2
    Last Post: 08-03-2013, 05:39 PM
  3. Replies: 11
    Last Post: 06-02-2013, 10:42 PM
  4. Combo Box Displaying Text, But Storing ID
    By SeaTigr in forum Forms
    Replies: 4
    Last Post: 11-22-2011, 08:58 AM
  5. Displaying Multiple Values, Storing One.
    By greatfallz in forum Forms
    Replies: 10
    Last Post: 08-02-2011, 01:18 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