PC Review


Reply
Thread Tools Rate Thread

How can I make the date field change automatically when I make a .

 
 
=?Utf-8?B?TmdpbmEgMjg=?=
Guest
Posts: n/a
 
      12th Jan 2005
How can I make the date field change that I set up automatically change when
I make changing in my other fields... etc. If I change a persons name in the
name field, I want my date field to reflect and change when I made the
change.
 
Reply With Quote
 
 
 
 
Lynn Trapp
Guest
Posts: n/a
 
      12th Jan 2005
Put the following code in the BeforeUpdate event of your data entry form.

Me.txtYourDateField = Date()

--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm


"Ngina 28" <Ngina (E-Mail Removed)> wrote in message
news:863A3C9B-8557-4238-8012-(E-Mail Removed)...
> How can I make the date field change that I set up automatically change

when
> I make changing in my other fields... etc. If I change a persons name in

the
> name field, I want my date field to reflect and change when I made the
> change.



 
Reply With Quote
 
=?Utf-8?B?VG9ueQ==?=
Guest
Posts: n/a
 
      14th Feb 2005
Lynn -

I have a field called lastUpdated and it is a manual field that we change
whenever we get a new email/phone/address/add a course, etc in a training
table.

What coding do I use for that field? I tried it on the berfore and also on
the after update field and still didn't have any luck.

I do this on the form...for the field lastUpdated...and put that event in
there, right?

Thanks!!!
Tony

"Lynn Trapp" wrote:

> Put the following code in the BeforeUpdate event of your data entry form.
>
> Me.txtYourDateField = Date()
>
> --
> Lynn Trapp
> MS Access MVP
> www.ltcomputerdesigns.com
> Access Security: www.ltcomputerdesigns.com/Security.htm
>
>
> "Ngina 28" <Ngina (E-Mail Removed)> wrote in message
> news:863A3C9B-8557-4238-8012-(E-Mail Removed)...
> > How can I make the date field change that I set up automatically change

> when
> > I make changing in my other fields... etc. If I change a persons name in

> the
> > name field, I want my date field to reflect and change when I made the
> > change.

>
>
>

 
Reply With Quote
 
Rick B
Guest
Posts: n/a
 
      14th Feb 2005
Putting the code in the Before Update will cause it to update when you make
a change to the record, but not if you simply view the record.


Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.LastUpdate = Date()
End Sub




Rick B




"Tony" <(E-Mail Removed)> wrote in message
news:F403D033-C7D7-4E48-BCDA-(E-Mail Removed)...
> Lynn -
>
> I have a field called lastUpdated and it is a manual field that we change
> whenever we get a new email/phone/address/add a course, etc in a training
> table.
>
> What coding do I use for that field? I tried it on the berfore and also

on
> the after update field and still didn't have any luck.
>
> I do this on the form...for the field lastUpdated...and put that event in
> there, right?
>
> Thanks!!!
> Tony
>
> "Lynn Trapp" wrote:
>
> > Put the following code in the BeforeUpdate event of your data entry

form.
> >
> > Me.txtYourDateField = Date()
> >
> > --
> > Lynn Trapp
> > MS Access MVP
> > www.ltcomputerdesigns.com
> > Access Security: www.ltcomputerdesigns.com/Security.htm
> >
> >
> > "Ngina 28" <Ngina (E-Mail Removed)> wrote in message
> > news:863A3C9B-8557-4238-8012-(E-Mail Removed)...
> > > How can I make the date field change that I set up automatically

change
> > when
> > > I make changing in my other fields... etc. If I change a persons name

in
> > the
> > > name field, I want my date field to reflect and change when I made the
> > > change.

> >
> >
> >



 
Reply With Quote
 
=?Utf-8?B?VG9ueQ==?=
Guest
Posts: n/a
 
      14th Feb 2005
I haven't done any coding in Access before. Where do I insert that code?
And what does "Me" standfor in Me.LastUpdate?

We have a responder table that holds most of the info and we wanted this
lastUpdated to change when we touch any of the others...will that be the case?

Thanks Rick!
Tony

"Rick B" wrote:

> Putting the code in the Before Update will cause it to update when you make
> a change to the record, but not if you simply view the record.
>
>
> Private Sub Form_BeforeUpdate(Cancel As Integer)
> Me.LastUpdate = Date()
> End Sub
>
>
>
>
> Rick B
>
>
>
>
> "Tony" <(E-Mail Removed)> wrote in message
> news:F403D033-C7D7-4E48-BCDA-(E-Mail Removed)...
> > Lynn -
> >
> > I have a field called lastUpdated and it is a manual field that we change
> > whenever we get a new email/phone/address/add a course, etc in a training
> > table.
> >
> > What coding do I use for that field? I tried it on the berfore and also

> on
> > the after update field and still didn't have any luck.
> >
> > I do this on the form...for the field lastUpdated...and put that event in
> > there, right?
> >
> > Thanks!!!
> > Tony
> >
> > "Lynn Trapp" wrote:
> >
> > > Put the following code in the BeforeUpdate event of your data entry

> form.
> > >
> > > Me.txtYourDateField = Date()
> > >
> > > --
> > > Lynn Trapp
> > > MS Access MVP
> > > www.ltcomputerdesigns.com
> > > Access Security: www.ltcomputerdesigns.com/Security.htm
> > >
> > >
> > > "Ngina 28" <Ngina (E-Mail Removed)> wrote in message
> > > news:863A3C9B-8557-4238-8012-(E-Mail Removed)...
> > > > How can I make the date field change that I set up automatically

> change
> > > when
> > > > I make changing in my other fields... etc. If I change a persons name

> in
> > > the
> > > > name field, I want my date field to reflect and change when I made the
> > > > change.
> > >
> > >
> > >

>
>
>

 
Reply With Quote
 
Rick B
Guest
Posts: n/a
 
      15th Feb 2005
You need to open the form in design-view. Go into the form's properties box
and find the "update" event. double-click in that field or select "event
procedure" from the drop down, then click the elipse to the right (...).
Update the code window as outlined in my earlier post.

Hope that helps.

Rick B


"Tony" <(E-Mail Removed)> wrote in message
news:972D81D9-4E81-44BB-BAC3-(E-Mail Removed)...
> I haven't done any coding in Access before. Where do I insert that code?
> And what does "Me" standfor in Me.LastUpdate?
>
> We have a responder table that holds most of the info and we wanted this
> lastUpdated to change when we touch any of the others...will that be the

case?
>
> Thanks Rick!
> Tony
>
> "Rick B" wrote:
>
> > Putting the code in the Before Update will cause it to update when you

make
> > a change to the record, but not if you simply view the record.
> >
> >
> > Private Sub Form_BeforeUpdate(Cancel As Integer)
> > Me.LastUpdate = Date()
> > End Sub
> >
> >
> >
> >
> > Rick B
> >
> >
> >
> >
> > "Tony" <(E-Mail Removed)> wrote in message
> > news:F403D033-C7D7-4E48-BCDA-(E-Mail Removed)...
> > > Lynn -
> > >
> > > I have a field called lastUpdated and it is a manual field that we

change
> > > whenever we get a new email/phone/address/add a course, etc in a

training
> > > table.
> > >
> > > What coding do I use for that field? I tried it on the berfore and

also
> > on
> > > the after update field and still didn't have any luck.
> > >
> > > I do this on the form...for the field lastUpdated...and put that event

in
> > > there, right?
> > >
> > > Thanks!!!
> > > Tony
> > >
> > > "Lynn Trapp" wrote:
> > >
> > > > Put the following code in the BeforeUpdate event of your data entry

> > form.
> > > >
> > > > Me.txtYourDateField = Date()
> > > >
> > > > --
> > > > Lynn Trapp
> > > > MS Access MVP
> > > > www.ltcomputerdesigns.com
> > > > Access Security: www.ltcomputerdesigns.com/Security.htm
> > > >
> > > >
> > > > "Ngina 28" <Ngina (E-Mail Removed)> wrote in message
> > > > news:863A3C9B-8557-4238-8012-(E-Mail Removed)...
> > > > > How can I make the date field change that I set up automatically

> > change
> > > > when
> > > > > I make changing in my other fields... etc. If I change a persons

name
> > in
> > > > the
> > > > > name field, I want my date field to reflect and change when I made

the
> > > > > change.
> > > >
> > > >
> > > >

> >
> >
> >



 
Reply With Quote
 
Rick B
Guest
Posts: n/a
 
      15th Feb 2005
Note: the "me" indicates the current object (the form).


"Tony" <(E-Mail Removed)> wrote in message
news:972D81D9-4E81-44BB-BAC3-(E-Mail Removed)...
> I haven't done any coding in Access before. Where do I insert that code?
> And what does "Me" standfor in Me.LastUpdate?
>
> We have a responder table that holds most of the info and we wanted this
> lastUpdated to change when we touch any of the others...will that be the

case?
>
> Thanks Rick!
> Tony
>
> "Rick B" wrote:
>
> > Putting the code in the Before Update will cause it to update when you

make
> > a change to the record, but not if you simply view the record.
> >
> >
> > Private Sub Form_BeforeUpdate(Cancel As Integer)
> > Me.LastUpdate = Date()
> > End Sub
> >
> >
> >
> >
> > Rick B
> >
> >
> >
> >
> > "Tony" <(E-Mail Removed)> wrote in message
> > news:F403D033-C7D7-4E48-BCDA-(E-Mail Removed)...
> > > Lynn -
> > >
> > > I have a field called lastUpdated and it is a manual field that we

change
> > > whenever we get a new email/phone/address/add a course, etc in a

training
> > > table.
> > >
> > > What coding do I use for that field? I tried it on the berfore and

also
> > on
> > > the after update field and still didn't have any luck.
> > >
> > > I do this on the form...for the field lastUpdated...and put that event

in
> > > there, right?
> > >
> > > Thanks!!!
> > > Tony
> > >
> > > "Lynn Trapp" wrote:
> > >
> > > > Put the following code in the BeforeUpdate event of your data entry

> > form.
> > > >
> > > > Me.txtYourDateField = Date()
> > > >
> > > > --
> > > > Lynn Trapp
> > > > MS Access MVP
> > > > www.ltcomputerdesigns.com
> > > > Access Security: www.ltcomputerdesigns.com/Security.htm
> > > >
> > > >
> > > > "Ngina 28" <Ngina (E-Mail Removed)> wrote in message
> > > > news:863A3C9B-8557-4238-8012-(E-Mail Removed)...
> > > > > How can I make the date field change that I set up automatically

> > change
> > > > when
> > > > > I make changing in my other fields... etc. If I change a persons

name
> > in
> > > > the
> > > > > name field, I want my date field to reflect and change when I made

the
> > > > > change.
> > > >
> > > >
> > > >

> >
> >
> >



 
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
Excel 2003 make 1 date cell automatically change another date cell Scotty Microsoft Excel Worksheet Functions 3 22nd Apr 2010 06:15 AM
How do I make one date field automatically add 2 weeks to... RYANneedsHELP Microsoft Access 4 2nd Sep 2008 09:06 PM
how do i make a date change automatically if i change one before . =?Utf-8?B?ZHBsNzU3OQ==?= Microsoft Excel Misc 1 11th Jan 2005 09:21 PM
Re: How to make date appears automatically in a column? Frank Kabel Microsoft Excel Misc 1 18th Aug 2004 10:10 PM
make a field automatically appear Art Microsoft Access Forms 0 17th Jun 2004 07:42 PM


Features
 

Advertising
 

Newsgroups
 


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