473,791 Members | 2,827 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2567
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*********@gm ail.comwrote in message
news:11******** **************@ c35g2000hsg.goo glegroups.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
2415
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 works without any problem in Acc97, 2000 and 2002, but now in Access 2003 there seem to be a problem with this. A user is working with my app, and he uses an Access 2002 MDE in an Access 2003 environment.
6
4756
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 appreciated. Thanks in advance
5
2164
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 there is no 'inbuilt' audit trail for me to see what has happend to the database to get it into its current state. Is there a way to make Access 2002 (in 2000 mode) to generate a log of ALL changes to table data ? A time/datestamp to start with...
1
4482
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 (.adp project client connecting directly to MSDE SQL database - no .mdb involved or local file tables beyond the .dbfs to be imported). - Using ODBC to connect to .dbf data sources without a problem (ODBC is
13
4991
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 SQL server for my back end, but continue to use Access for the front end. I understand I can create an audit trail of record changes in SQL at the table level, instead of at the form level in Access. I have been playing with Access since the...
3
3436
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 working on. I am working with MS Access 2002. And I am having a problem with one of my charts. I will explain how everything is laid out then go into details.
2
1599
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: I am working on a network invrntory solution for my department. We're using a great little utility to audit each machine on the network, storing all kinds of information about hardware and software in an access database on one of the public...
17
4421
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 there, but is there a way they can find out if that application was put there from a CD or email or created at work? Hint: It's not on a client/server database, just native jet database mdb created on Access 2003 (default 2000)...
1
2742
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) disappeared from both DBs. The application uses an Access report db for users to query for specialized data. Security is to the Access DB is limited to 3 db admins (2 IT, I departmental), and 1dept manager. The app's audit log is supposed to track...
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10426
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9993
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2913
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.