Auto Update (1 Viewer)

Brutal

Cannis
Local time
Today, 17:03
Joined
May 7, 2002
Messages
25
Hello
There is a field in my table called "complete" and is a controled by a yes no radio buttons i.e when a user click a radio button the field gets a 1 or 2 put into it. What I would like to do is when that field is changed is to have a date field to automatically get todays date entered in to it.
Any ideas please.

Thanks

Paul
 

shay

Registered User.
Local time
Today, 17:03
Joined
Apr 29, 2002
Messages
169
Hi

Put

txtToday = Date()

in your option group's afterupdate event.

hth

shay :cool:
 

Brutal

Cannis
Local time
Today, 17:03
Joined
May 7, 2002
Messages
25
Could you please tell me what the txtToday means or should i be replacing this with the table filed name that I want Date() to load in to

Thanks

Paul
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 11:03
Joined
Feb 28, 2001
Messages
27,232
Shay's remarks were in the right direction but he confused you, so I'll step in and take my view on it


Let us assume that the radio button group is called [Complete] on the form, and that the same form has [DateCompleted] on it as the date in question. (It does not matter if the field is actually visible, it just has to be on the form.)

In the event routine

Private Sub Complete_AfterUpdate

[DateCompleted] = Date()

End Sub
 

Brutal

Cannis
Local time
Today, 17:03
Joined
May 7, 2002
Messages
25
Thankyou

Thankyou both very much
It is work a treat

Paul:D
 

Users who are viewing this thread

Top Bottom