473,387 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MS Access 2002 Audit Log not working correctly

I am using an MS Access 2002 database to track user login
information. I have copied Allen Browne's audit log and removed the
references to the error handling.

So far, on all of my forms (for 7 tables), the 'Inserts' are recorded
in the audit tables, but Deletes are not recored and when records are
changed, the "Edit To" shows in the audit table, but there is no "Edit
From" and "Delete" entries show up only in the Temp table.
AudEditBegin, AudEditEnd, AudDelBegin, and AudDelEnd all appear to be
running. I have removed any extraneous code from my forms (I had
checkboxes and buttons to open other forms etc) to eliminate that as a
possibility.

I get an error on Deletes that indicates it cannot finish the
procedure because it would create duplicate values. I have checked
all fields and none are indexed (except primary key). On updates, no
"Edit From" values are logged.

Any help would be greatly appreciated!

May 3 '07 #1
1 2513
Presumably we are talking about this article:
Audit Trail - Log changes at the record level
at:
http://allenbrowne.com/AppAudit.html

If the error indicates a problem with "duplicates", it would seem that you
have an index wrong in the audit table (or possibly in the temp table.)

The primary key (and possibly other fields) in your original table are
indexed so as to block dupliates. However, these fields can be edited
multiple times, and so there can be multiple entries in the audit table for
the same record in the original table. Make sure the Indexed property of the
fields in the audit table are *not* set to:
Yes (No Duplicates)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<me*********@gmail.comwrote in message
news:11**********************@c35g2000hsg.googlegr oups.com...
>I am using an MS Access 2002 database to track user login
information. I have copied Allen Browne's audit log and removed the
references to the error handling.

So far, on all of my forms (for 7 tables), the 'Inserts' are recorded
in the audit tables, but Deletes are not recored and when records are
changed, the "Edit To" shows in the audit table, but there is no "Edit
From" and "Delete" entries show up only in the Temp table.
AudEditBegin, AudEditEnd, AudDelBegin, and AudDelEnd all appear to be
running. I have removed any extraneous code from my forms (I had
checkboxes and buttons to open other forms etc) to eliminate that as a
possibility.

I get an error on Deletes that indicates it cannot finish the
procedure because it would create duplicate values. I have checked
all fields and none are indexed (except primary key). On updates, no
"Edit From" values are logged.

Any help would be greatly appreciated!
May 4 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sabine Oebbecke | last post by:
Hi Experts! I have several forms and reports where controls get their values with 'Forms!MainForm!Control' or 'Forms!MainForm!Subform!Control' resp 'Forms!MainForm!Subform.Form!Control' which...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
5
by: alanknipmeyer | last post by:
Dear Sirs, Having previously used other SQL implementations I have grown used to having an audit trail to find when problems occured, the problem I am increasingly finding with Access is that...
1
by: JoeBobHankey | last post by:
Background: - I'm running MSDE 2000 (not client tools, stored procedure capability, etc). This may change, but not in the first part of development. - My Access file is an Access 2002 project...
13
by: Jim M | last post by:
I've been playing with Allen Browne's audit code and found it very useful. I need to track record insertions, deletions, and edits for several tables. I am planning to replace Access with Microsoft...
3
by: StBond | last post by:
Hi everyone, I am new to Access and Visual Basic so things my be getting across a bit cloudy. I only started using VB for one week. I am having a little problem with the database that I am...
2
by: Hefestus | last post by:
Hey everyone, I have never really used access before and i now find myself knee deep in it trying to solve a problem. Hopefully someone has an idea. Anything would be great. Here's the problem:...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
1
by: effiw | last post by:
I'm working with an application that has an MS Access front end linked to the SQL Server DB backend. During a period of one week, 32 records of a spefic event (and all related records to that event)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.