Results 1 to 4 of 4
  1. #1
    CementCarver's Avatar
    CementCarver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Location
    Canada
    Posts
    231

    What Constitutes a New Record


    What constitutes a new record? I have a main customer form and if the client decides to add a new customer, I call up an edit form, but I prefill the customer name, customer type etc. So when the edit form pops up, several fields are already filled with data. The new customer record is already created behind the scenes prior to the edit form being displayed.

    Odd thing though, the action that is being recorded, via Martin Greene's audit table code, is always...."EDIT" and never "NEW".

    So does that mean that when the second form is called up that it's determined that any changes to the record is deemed an "EDIT"?

    CementCarver

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    If the 'new customer' record is committed to table before form opens then it is an existing record that is just being edited to include more details.

    If you want to treat the record as 'new' will have to adjust code to handle that.
    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
    CementCarver's Avatar
    CementCarver is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Location
    Canada
    Posts
    231
    How does one change the code to make it a new record?

    CementCarver

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I don't know your code so can't answer that.
    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: 3
    Last Post: 03-09-2013, 10:39 AM
  2. Replies: 3
    Last Post: 02-06-2013, 07:23 PM
  3. Replies: 2
    Last Post: 12-21-2012, 01:57 PM
  4. Replies: 3
    Last Post: 10-19-2012, 04:30 PM
  5. Replies: 14
    Last Post: 05-25-2012, 02:40 AM

Tags for this Thread

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