Re: Help with Allen Brown's (wonderful!) audit trail code.
- From: "Janet" <Janet@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 13 May 2005 06:52:14 -0700
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()
>
> --
> 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: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.
> >
> > How do I do this?
>
>
>
.
- Follow-Ups:
- Re: Help with Allen Brown's (wonderful!) audit trail code.
- From: Allen Browne
- Re: Help with Allen Brown's (wonderful!) audit trail code.
- 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
- Help with Allen Brown's (wonderful!) audit trail code.
- Prev by Date: Re: WinZip / Task Should I do this thru VBA in Access
- Next by Date: Padding a string with characters
- 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
|