dbTalk Databases Forums  

auto update

comp.database.ms-access comp.database.ms-access


Discuss auto update in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default auto update - 06-07-2004 , 08:28 PM






how can i make it so that when the value of one field is 15 another field in same record automatically enters todays date?
thanks in advance!!



Reply With Quote
  #2  
Old   
Andrew Backer
 
Posts: n/a

Default Re: auto update - 06-14-2004 , 02:09 PM






I assume you are either using continuous forms or are working with a
single form. AFAIK you can't do this type of thing when you are working
in datasheet mode.

Put some code in the AfterUpdate event that is similar to this :

Private Sub MyControl_AfterUpdate()

'-- set the other controls value to todays date --
Me.OtherControl.Value = Date()

'-- or, if the field isn't visible on a control --
Me!FieldName = Date()

End Sub

-[ Andrew Backer / abacker .@. comcast .dot. net ]-

jjrmy1 (AT) earthlink (DOT) net wrote:

Quote:
how can i make it so that when the value of one field is 15 another field in same record automatically enters todays date?
thanks in advance!!



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.