Re: Help with Allen Brown's (wonderful!) audit trail code.
- From: "Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx>
- Date: Sat, 14 May 2005 00:18:46 +0800
You will need to add the fields to both the audit table, and also the temp
table.
Then you will need to modify the Append query statements so they include
these fields as well. Be careful to maintain the same order, and to include
the quote delimiters around the string values.
--
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.
"Janet" <Janet@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:582EAB9F-05BB-4357-87F3-9DB16070E0F8@xxxxxxxxxxxxxxxx
> Thank you, Allen :-). I'm not sure how to incorporate it into the audit
> trail code I got from you, though. That is, I already have the code for
> the
> other (current user, machine name, etc.) but when I try to add it to the
> audit trail code, I get error messages saying something like "the input
> query
> must have a query or table" (or something like that. So I know I'm doing
> something wrong, and think it must be something really simple, but I'm not
> getting it. I'm very new at this and not sure how to add to the existing
> audit trail code to make it all work right.
>
> "Allen Browne" wrote:
>
>> The database use name is given by:
>> CurrentUser()
>>
>> The machine name is here:
>> http://www.mvps.org/access/api/api0009.htm
>>
>> Not sure what you mean by the network full name.
>> And potentially the person could be on multiple networks?
>> You could try opening a Windows command prompt, and entering:
>> SET
>> If you see the name there, you be able to use Environ()
>>
>> "Janet" <Janet@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:877A3B18-5B48-4C74-B7CA-2C8A61AAB355@xxxxxxxxxxxxxxxx
>> >I used Allen Brown's instructions for creating an audit trail. It works
>> > very, very well (thank you, Allen!). It shows the type of audit,
>> > date/time
>> > audit occurred, and the network username of the person who inserted,
>> > updated,
>> > or deleted a record.
>> >
>> > I would like to add a few more things, though, and have no idea how to
>> > do
>> > this. I want to add: 1) network full name (in addition to network
>> > username),
>> > database username, and machine name.
.
- Follow-Ups:
- References:
- Help with Allen Brown's (wonderful!) audit trail code.
- From: Janet
- Re: Help with Allen Brown's (wonderful!) audit trail code.
- From: Allen Browne
- Re: Help with Allen Brown's (wonderful!) audit trail code.
- From: Janet
- Help with Allen Brown's (wonderful!) audit trail code.
- Prev by Date: Re: InStr right to left
- Next by Date: Re: Help with Allen Brown's (wonderful!) audit trail code.
- Previous by thread: Re: Help with Allen Brown's (wonderful!) audit trail code.
- Next by thread: Re: Help with Allen Brown's (wonderful!) audit trail code.
- Index(es):
Relevant Pages
|