PC Review


Reply
Thread Tools Rate Thread

current date & time & current user

 
 
=?Utf-8?B?Sm93ZW4=?=
Guest
Posts: n/a
 
      5th Feb 2005
Can I start my 'notes' field with current date & time followed by the current
user? Please advise. I am a new beginner and I don't understand much about
the expressions and macro. Thanks.
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      5th Feb 2005
Current Date/Time is the Now function.

Current user, it depends on your definition. If you're using Access
security, and want their Access login name, you use CurrentUser(). If you
want their Windows login ID, check
http://www.mvps.org/access/api/api0008.htm at "The Access Web"

How you put these values into the field depends on how your form works. You
could put logic in the form's Current event to set the notes field. Assuming
the name of the textbox that's mapped to the Notes field is named txtNotes,
you could use something like:

If Len(txtNotes & "") = 0 Then
txtNotes = Now & " " & fOSUserName() & ": "
End If

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Jowen" <(E-Mail Removed)> wrote in message
news:514C30D1-26C6-484F-863E-(E-Mail Removed)...
> Can I start my 'notes' field with current date & time followed by the
> current
> user? Please advise. I am a new beginner and I don't understand much
> about
> the expressions and macro. Thanks.



 
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
Can I automatically enter the current date or current time into a =?Utf-8?B?QmVu?= Microsoft Excel New Users 7 19th Oct 2005 03:38 PM
Current time Current date. yo beee Microsoft Excel Programming 6 22nd Jul 2004 03:41 AM
" The current time on this computer and the current time on the network are diff Microsoft Windows 2000 Advanced Server 2 30th Apr 2004 06:51 PM
User Form with a field showing current date / time jennie Microsoft Excel Programming 6 26th Mar 2004 12:27 PM
"the current time on this computer and the current time on the network are diffe Manuel Windows XP General 1 10th Dec 2003 04:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:47 AM.