Help with Dates

woknick

Registered User.
Local time
Today, 14:41
Joined
Sep 25, 2004
Messages
85
I have two textboxes txtPrep and txtInstall.
When the user enters an install date, I would like the txtPrep to display the txtdate - 5 days.

So if txtInstall = 10/6/2004 Prep date would = 10/1/2004

Thanks in advance
 
me!txtPrep = DateAdd("d",-5,me!txtInstall)

???
kh
 
You're not storing the value are you?
 
both textboxes are conected to fields in a table
 
Will this -5 always be the case or will you need to maually change it to something else from time to time?

kh
 
prep date is a calculated value and should not be stored. You can retrieve the value at any time via a query or calculated control
 

Users who are viewing this thread

Back
Top Bottom