PC Review


Reply
Thread Tools Rate Thread

Automatically record date/time record is updated

 
 
=?Utf-8?B?RG9ubmE=?=
Guest
Posts: n/a
 
      17th May 2005
In Access 2000, is there a way to record the time in a table when the form is
opened?

Thanks
 
Reply With Quote
 
 
 
 
Van T. Dinh
Guest
Posts: n/a
 
      17th May 2005
If you can ensure all data entries / edits are done through the Form and not
DatasheetView of the Table / Query, you can use the Form_BeforeUpdate to
record the "DateTimeUpdated" in conj. with the edit.

HTH
Van T. Dinh
MVP (Access)



"Donna" <(E-Mail Removed)> wrote in message
news:62A99F87-6458-4661-9BE0-(E-Mail Removed)...
> In Access 2000, is there a way to record the time in a table when the form

is
> opened?
>
> Thanks



 
Reply With Quote
 
=?Utf-8?B?RG9ubmE=?=
Guest
Posts: n/a
 
      18th May 2005
Not to sound stupid, but no date appears. Am I missing something? I'm using
Access 2000

Thanks,
Donna

"Van T. Dinh" wrote:

> If you can ensure all data entries / edits are done through the Form and not
> DatasheetView of the Table / Query, you can use the Form_BeforeUpdate to
> record the "DateTimeUpdated" in conj. with the edit.
>
> HTH
> Van T. Dinh
> MVP (Access)
>
>
>
> "Donna" <(E-Mail Removed)> wrote in message
> news:62A99F87-6458-4661-9BE0-(E-Mail Removed)...
> > In Access 2000, is there a way to record the time in a table when the form

> is
> > opened?
> >
> > Thanks

>
>
>

 
Reply With Quote
 
Van T. Dinh
Guest
Posts: n/a
 
      18th May 2005
You have to create a datetime Field "DateUpdated" (or whatever name you want
to use for the Field). In the BeforeUpdate Event of the Form, use:

Me.DateUpdated = Now()

--
HTH
Van T. Dinh
MVP (Access)



"Donna" <(E-Mail Removed)> wrote in message
news:6FE4B59D-84D8-4EB2-9E81-(E-Mail Removed)...
> Not to sound stupid, but no date appears. Am I missing something? I'm

using
> Access 2000
>
> Thanks,
> Donna
>



 
Reply With Quote
 
=?Utf-8?B?RG9ubmE=?=
Guest
Posts: n/a
 
      19th May 2005
ok....so assume I'm a moron...

I created a table field entryin my main table: "DateUpdated"

I right clicked the main form properties button (my main form has many
subforms), I typed in me.dateupdated = Now() in the MAIN form beforeupdate
property.

I still cannot see/record the update date in my table...what little step am
I missing?

Thank you so much...
Donna

"Van T. Dinh" wrote:

> You have to create a datetime Field "DateUpdated" (or whatever name you want
> to use for the Field). In the BeforeUpdate Event of the Form, use:
>
> Me.DateUpdated = Now()
>
> --
> HTH
> Van T. Dinh
> MVP (Access)
>
>
>
> "Donna" <(E-Mail Removed)> wrote in message
> news:6FE4B59D-84D8-4EB2-9E81-(E-Mail Removed)...
> > Not to sound stupid, but no date appears. Am I missing something? I'm

> using
> > Access 2000
> >
> > Thanks,
> > Donna
> >

>
>
>

 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      19th May 2005
On Wed, 18 May 2005 19:01:02 -0700, "Donna"
<(E-Mail Removed)> wrote:

>ok....so assume I'm a moron...
>
>I created a table field entryin my main table: "DateUpdated"
>
>I right clicked the main form properties button (my main form has many
>subforms), I typed in me.dateupdated = Now() in the MAIN form beforeupdate
>property.
>
>I still cannot see/record the update date in my table...what little step am
>I missing?


What you need to do is click the ... icon by the BeforeUpdate
property; invoke the Code Builder; and insert this line between the
Sub and End Sub lines which Access will provide.

*NOT* obvious until the third or fourth time you need to do it!

John W. Vinson[MVP]
 
Reply With Quote
 
liyalin
Guest
Posts: n/a
 
      4th Jun 2005

Donna <(E-Mail Removed)> wrote in message
news:6FE4B59D-84D8-4EB2-9E81-(E-Mail Removed)...
> Not to sound stupid, but no date appears. Am I missing something? I'm

using
> Access 2000
>
> Thanks,
> Donna
>
> "Van T. Dinh" wrote:
>
> > If you can ensure all data entries / edits are done through the Form and

not
> > DatasheetView of the Table / Query, you can use the Form_BeforeUpdate to
> > record the "DateTimeUpdated" in conj. with the edit.
> >
> > HTH
> > Van T. Dinh
> > MVP (Access)
> >
> >
> >
> > "Donna" <(E-Mail Removed)> wrote in message
> > news:62A99F87-6458-4661-9BE0-(E-Mail Removed)...
> > > In Access 2000, is there a way to record the time in a table when the

form
> > is
> > > opened?
> > >
> > > 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
Re: Record the date a record was last updated via VBA Allen Browne Microsoft Access Form Coding 0 25th Jun 2008 04:58 AM
W2K DNS Record Time stamp of host record was not be updated ESW Microsoft Windows 2000 DNS 0 8th May 2006 09:23 AM
Record exact date and time a record is entered Tommy Hutchison Microsoft Access 5 19th Nov 2003 02:14 PM
Re: Automatically adding date/time stamp to an edited record Sandra Daigle Microsoft Access Forms 0 1st Aug 2003 05:19 PM
Re: Automatically adding date/time stamp to an edited record Allen Browne Microsoft Access Forms 0 1st Aug 2003 05:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:24 PM.