Results 1 to 2 of 2
  1. #1
    apotter is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2012
    Posts
    5

    RunCommand acCmdSaveRecord

    Came across a form that has this code in it's Sub cmdSave_Click() event. It appears twice in succession -

    RunCommand acCmdSaveRecord
    RunCommand acCmdSaveRecord

    The form contains a subform so I can only imagine that it is saving the data for both forms???


    Does this make sense? Is this the appropriate way to handle this?

    Tia

  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,626
    The second Run makes no sense to me.

    Record is committed to table when move to another record, form loses focus (as in when it is closed), or run code.
    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: 0
    Last Post: 06-17-2010, 04:51 AM
  2. DoCmd.RunCommand acCmdSaveRecord
    By Rick West in forum Programming
    Replies: 3
    Last Post: 04-22-2010, 02:52 PM
  3. Replies: 5
    Last Post: 03-30-2010, 12:53 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