Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record addition

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0

How would I populate a date field with today's date after a specific field has been changed to a finish status.

I have a record such as:

ID Status CompleteDate
2 In Work

When Status is changed to Completed I want it to automatically populate the CompleteDate field with todays date ( the date Status was changed to 'Completed') such as:

ID Status CompleteDate
2 Completed 4/4/2002

Is there a trigger or something in Access 2000 that will do this for me??

 
You could create an event procedure on the lost focus of the status field to have it write todays date within the completed date!


ie:

dim st as string
dim cd as date

st = me!status

if st = "completed" then
cd= now()
me!CompleteDate = cd
end if
end sub

Hth
André
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top