Results 1 to 2 of 2
  1. #1
    marklove is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2013
    Posts
    12

    updating and saving and clearing out all the fields in a form

    hi good day!!




    i'm having a problem in my survey program that it doesn't updating my table when i tried to click my submit button. I used the wizard to create a command button that will save my data to another table but my table is not updating? I'm new to ACCESS and i want to have a command button that will saves and update my table and clears out the field when if you click that command...


    any suggestion and help will be appreciated
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    That code commits the record to the table the form is bound to, not to another table. It works.

    What you are probably doing is editing the same record and overwriting data. If you want to enter a new record must go to a new record row. This can be done with the intrinsic navigation bar at bottom of form.

    A record is committed to table when form closes, move to another record, or run code. Your button runs code but since the form always opens to first record in table, you are just editing the same record over and over.
    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. Clearing Fields for on User Form for New Record
    By dccjr in forum Programming
    Replies: 1
    Last Post: 01-31-2013, 06:40 PM
  2. Replies: 7
    Last Post: 04-25-2012, 06:25 PM
  3. Replies: 1
    Last Post: 03-27-2012, 05:25 PM
  4. issues with Enter/Tab/arrow keys clearing fields
    By Kimberly42506 in forum Access
    Replies: 10
    Last Post: 12-16-2011, 03:32 PM
  5. Saving unbound fields on form to table
    By lexygirl in forum Forms
    Replies: 4
    Last Post: 07-25-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