Results 1 to 3 of 3
  1. #1
    mkc80 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    56

    Automatic Update Feature of Forms?

    Hi,

    I have a form and an associated table. The data that is entered in the form automatically gets entered in to the table without a save button (I don't know how)
    How do we turn on or off the auto save feature?

    Also, the table should only contain unique rows. For example, say my table has 3 fields, UserID, Name and Address.
    Say, I have only entered UserID and Name today and come back tomorrow to fill the same form with the same UserID, Name but now will update an address.


    What is happening is, a new record is being created instead of the first record just getting updated with the address information.
    How do I stop this (Are there any features/properties I can set in the form to just update it OR write VBA code)

    Please advise.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    The data is saved to table because data controls (textbox, combobox, listbox, checkbox) are bound to fields of the form's RecordSource (the associated table or query). The entries are committed when the form closes, move to another record, or run code to save. There is no 'switch' to turn save on/off. Controls are either bound or not bound.

    If you want to update an existing record, need to pull up that record from the table. The form will open to the first record of its RecordSet. So need to do filter or search to go to desired existing record. Can use the intrinsic Access search/filter utilities or write code to build custom user interface. Code can be macros or VBA. The more customized the GUI the more code is required. Review http://datapigtechnologies.com/flash...tomfilter.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.

  3. #3
    mkc80 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    56
    Thank You, this helps me get an idea of what needs to be done!

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

Similar Threads

  1. Autofilling unwanted feature !
    By Jamescdawson in forum Forms
    Replies: 1
    Last Post: 03-19-2012, 03:16 PM
  2. Directory Creation Feature Help
    By MWB in forum Access
    Replies: 6
    Last Post: 10-27-2010, 01:50 PM
  3. Comparison Feature Help
    By Kapelluschsa in forum Access
    Replies: 2
    Last Post: 10-25-2010, 06:43 AM
  4. Help with a search feature or combo box
    By jmanis in forum Forms
    Replies: 14
    Last Post: 07-06-2010, 06:38 AM
  5. Replies: 2
    Last Post: 05-05-2010, 02:52 PM

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