473,396 Members | 1,599 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,396 software developers and data experts.

audit trail

law
I'm duing Allen Browne's audit log but now I'm finding i have to have a
PK in the audTmp table. I've tried adding a PK field at which point
the auditing function quits working. Any ideas? Thanks.

Nov 13 '05 #1
7 1721
Presumably we are talking about this link:
http://allenbrowne.com/AppAudit.html

Why does your temp table need a primary key? If there is an important
reason, you could add the PK as the last field in the temp table, and then
add an extra Number field to the real audit table so that there is somewhere
to write this extra field. Alternatively, you could re-write the SQL
statements so that they call each field by name and ignore the PK of the
temp table.

--
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.

"law" <Ly***********@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I'm duing Allen Browne's audit log but now I'm finding i have to have a
PK in the audTmp table. I've tried adding a PK field at which point
the auditing function quits working. Any ideas? Thanks.

Nov 13 '05 #2
law
Worked like a charm. We are migrating to SQL and the network man says
SQL hates it when there is no PK in a table. Thank you and thank you
for all the help I've gleaned from your answers on this forum.

Nov 13 '05 #3
law wrote:
Worked like a charm. We are migrating to SQL and the network man says
SQL hates it when there is no PK in a table. Thank you and thank you
for all the help I've gleaned from your answers on this forum.


It's more like Access hates when there's no PK in a SQL table, it will
treat it as read-only. SQL Server itself will tolerate it but the usual
caveat applies about update/delete statements may take out more than you
expected :-)

--
This sig left intentionally blank
Nov 13 '05 #4
law
After migrating with SQL tables and inserting PK in audtmp Table and
that same field as a number field in aud table at the end, when trying
to enter info or edit info, the forms freeze, will not even allow you
to close with close button on form unless you press the escape key. I
did a check without the auding program and all works. Any ideas as to
what is causing the auding table to not allow new/edited info? It was
working fine prior to changing to SQL tables. Thanks.

Nov 13 '05 #5
law wrote:
After migrating with SQL tables and inserting PK in audtmp Table and
that same field as a number field in aud table at the end, when trying
to enter info or edit info, the forms freeze, will not even allow you
to close with close button on form unless you press the escape key. I
did a check without the auding program and all works. Any ideas as to
what is causing the auding table to not allow new/edited info? It was
working fine prior to changing to SQL tables. Thanks.


Can you insert records into the audit table by itself from Access?

--
This sig left intentionally blank
Nov 13 '05 #6
law

Sure can

Nov 13 '05 #7
law wrote:
Sure can


You may find Access gets its knickers in a twist if you do a BeginTrans
in VBA, the next table you update will be exclusively locked and even
your own session cannot read from it, IOW it locks itself out. This sort
of behavior doesn't occur when using Jet tables. It may be the audit
code is doing something along these lines.

Have a wait around, see if the freeze turns into a "ODBC Call Failed" or
"ODBC Timeout" message after 1 minute.

--
This sig left intentionally blank
Nov 13 '05 #8

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

Similar topics

6
by: Raphael Gluck | last post by:
Hi, Is it possible for one to program one's pages as such that when a database table is updated over the web, via a form, that an e-mail confirmation is sent to a specified address, notifying...
2
by: Keith | last post by:
Hi I am developing an ASP application which will interact with a SQL database. A requirement of the application is that there is a full audit trail of any modifications to data. I am...
0
by: Me | last post by:
Hi... A much lamented question, I guess.. I'm trying to create a simple audit trail. log the changes to an SQL 2000 table, so that they are written into a mirror table. The entire record, only...
3
by: Zlatko Matić | last post by:
Hello. I tried to implement audit trail, by making an audit trail table with the following fileds: TableName,FieldName,OldValue,NewValue,UpdateDate,type,UserName. Triggers on each table were...
6
by: Parag | last post by:
Hello, I have been assigned the task to design the audit trail for the ASP.NET web application. I don't know what the best practices for such audit trails are. Our application one dedicated user...
0
by: hary08 | last post by:
I have a module copied ftom this site, here it is: Option Compare Database Option Explicit Public Function AuditTrail() On Error GoTo Err_Audit_Trail 'ACC2000: How to Create an Audit...
3
by: hary08 | last post by:
im doing a database for Hospital Admission, I have a log in form which prompt user for a password. The source of log in is to look for the values in my Table tblEmployees and match user name and...
2
by: rockdc1981 | last post by:
I dont it is possible to put this codes together.. I want to prompt the user to save the record and at the same time have a log of audit trail. the codes work out fine separately. Code for Audit...
6
by: babamc4 | last post by:
I have a main form (mainformlung) with 5 subforms (followupacute, followuplate, biochemresults, haemresults and pftresults). I have copied Allen Browne's Audit Trail code (thanks to Allen Browne)...
4
by: Emin | last post by:
Dear Experts, We need to design a database which has an audit trail for updates to a certain set of tables. The two main approaches I've seen for this include shadow tables (an extra table to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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...
0
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...
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...
0
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...
0
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,...

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.