[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Same Code - Different results

Posted on 2011-03-02
2
Medium Priority
?
290 Views
Last Modified: 2012-05-11
Hi,

..I have tried multiple fixes here but no joy .. 3 hours later..

I have written an audit trail.
There is an additional "memo" field on each record "Auditmemo".
 (Uses OldValue etc).

The audit trail works perfectly on form "AA_ThisWorks". (Note the unique record ID in grey on left of screen).  
The before update event of form is "=audit()".

All good so far!
However, when I try to use this audit trail on another form or table  ... the following happens.

PROBLEM: See AA_ThisFails
If there is more than one change to a single record then ONLY the last change is recorded in the "Auditmemo" field,

WHY ??  This works fine in AA_ThisWorks

(The Audit buttons on the screen may help to understand my problem).
I have hidden some forms/tables from view for simplification


All Help greatly appreciated on this one .... it has been frustrating me for hours.



Database1.zip
0
Comment
Question by:Patrick O'Dea
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 total points
ID: 35017190
test this

modified codes in the function audit
Database1.accdb
0
 

Author Closing Comment

by:Patrick O'Dea
ID: 35019375
Perfect - thanks once again
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question