Results 1 to 4 of 4
  1. #1
    digitalbalu is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Location
    India
    Posts
    14

    Question Help me to update a record via coding or through macro

    Hi,


    Here is my customer entry form. Add new button & Delete button works correctly. But by default all the records saved automatically. I want new record or edit record should be saved after I press the Save/update button otherwise it must be cancelled. How and where to write the code? Please help me...

    Thanks in advance..Click image for larger version. 

Name:	CustomerEntry.jpg 
Views:	15 
Size:	80.1 KB 
ID:	11072

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    One way would be to use an unbound form to add your data. See the link for how to do that.

    http://www.datapigtechnologies.com/f...rdsnocode.html

  3. #3
    digitalbalu is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Location
    India
    Posts
    14
    Thanks alansidman. But my form is bounded one. I just want save & update must be executed after the save button pressed.'

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Never seen anything like that. I suppose you could have an unbound textbox (could be hidden) that would be set to "Saved" when the Save button is clicked. Then when the Close button is clicked, check value of textbox and if it doesn't say "Saved" cancel the record. Have the textbox DefaultValue property set to "Not Saved" so that new record will not have the "Saved" value.

    However, I've not had much luck with 'canceling' a record by using the Undo method.
    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. Replies: 6
    Last Post: 02-16-2013, 07:34 AM
  2. Replies: 4
    Last Post: 12-14-2012, 06:33 PM
  3. Coding an "update" button
    By Nick F in forum Programming
    Replies: 6
    Last Post: 11-16-2012, 09:38 AM
  4. macro: rapid firing of update queries
    By stevepcne in forum Access
    Replies: 1
    Last Post: 11-17-2011, 05:55 PM
  5. Running an Update Query from a Macro
    By michaelb in forum Queries
    Replies: 7
    Last Post: 06-02-2011, 09:46 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