PC Review


Reply
Thread Tools Rate Thread

How to automatically enter UserName fields in tables

 
 
=?Utf-8?B?UGhpbGlw?=
Guest
Posts: n/a
 
      31st May 2007
Hi,

I have several tables in an Access 2003 database.

On each one I have 4 columns - 2 for 'created by' user and date and two for
'amended by' user and date.

How do I populate these columns on Add new or Update row with the NT ID?

thanks for any help.

Philip
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      31st May 2007
Here is the code to get the user name:
http://www.mvps.org/access/api/api0008.htm

Use the BeforeUpdate event procedure of your form to assign these 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.

"Philip" <(E-Mail Removed)> wrote in message
news:24D07DB2-60B4-4F7C-A146-(E-Mail Removed)...
> Hi,
>
> I have several tables in an Access 2003 database.
>
> On each one I have 4 columns - 2 for 'created by' user and date and two
> for
> 'amended by' user and date.
>
> How do I populate these columns on Add new or Update row with the NT ID?
>
> thanks for any help.
>
> Philip


 
Reply With Quote
 
=?Utf-8?B?UGhpbGlw?=
Guest
Posts: n/a
 
      31st May 2007
Thankyou - I think that's what I need!

Philip

"Allen Browne" wrote:

> Here is the code to get the user name:
> http://www.mvps.org/access/api/api0008.htm
>
> Use the BeforeUpdate event procedure of your form to assign these 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.
>
> "Philip" <(E-Mail Removed)> wrote in message
> news:24D07DB2-60B4-4F7C-A146-(E-Mail Removed)...
> > Hi,
> >
> > I have several tables in an Access 2003 database.
> >
> > On each one I have 4 columns - 2 for 'created by' user and date and two
> > for
> > 'amended by' user and date.
> >
> > How do I populate these columns on Add new or Update row with the NT ID?
> >
> > thanks for any help.
> >
> > Philip

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically enter values in fields in a table David D. Microsoft Access 1 1st May 2010 02:05 AM
How to make Outlook open automatically WITHOUT having to enter a username and password from computer off of the domain? Spin Microsoft Outlook 2 22nd Nov 2008 08:36 AM
Normalizing Tables and Enter Data in Fields Based on Employee Numb JWeaver Microsoft Access Forms 0 22nd May 2008 09:27 PM
Display fields from multiple tables in a form that I can enter dat VolunteerCoordinator Microsoft Access Forms 1 19th Feb 2008 12:24 AM
Automatically enter values in the text fields Sehboo Microsoft VB .NET 0 29th May 2005 05:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:11 AM.