How do I

T

theedge2k

I have a form in which i placed a data field concerning HDD warranty date. I
need that control field to update the date with a 3 year period Ie, if i
enter 02-08-08 i want that control field to show 02-08-2013 in the box. I
apologized for the crudness of this question.
 
D

Douglas J. Steele

Realistically, you don't need to store 02-08-2013 anywhere, since you can
always recalculate it. Therefore, the best approach is to set the
ControlSource of the text box to

=DateAdd("yyyy", 5, [Forms]![NameOfForm]![NameOfOtherField])
 
J

John W. Vinson

I have a form in which i placed a data field concerning HDD warranty date. I
need that control field to update the date with a 3 year period Ie, if i
enter 02-08-08 i want that control field to show 02-08-2013 in the box. I
apologized for the crudness of this question.

Douglas is correct if you want the warrenty date to always be five (three?
don't know which you intended!) years after the purchase date. If you want
the field to be editable - for instance, the default warranty period is three
years but you want to extend it for this customer - you can "push" the value
into the warrenty textbox in the AfterUpdate event of the purchase date.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top