G Guest Nov 10, 2004 #1 I have a form and would like field C to be automatically calculated in a form. The formula being Datefield A - DatefieldB = field C can this be done?
I have a form and would like field C to be automatically calculated in a form. The formula being Datefield A - DatefieldB = field C can this be done?
R Rick B Nov 10, 2004 #3 Sure. In an unbound text box simply put... =[DatefieldA] - [DatefieldB] Rick B
R Rick B Nov 10, 2004 #4 Nope. You would not want to store a calculated value. When you need the value, just recalculate it. Storing the value would lead to all kinds of trouble. What if you changed one of the dates, but forgot to fix your calculated field? Search through here and you will find a hundred posts explaining why you do not store a calculated field in a table. There are some exceptions, but I can't think of a case where subtracting two dates would be one of them. Rick B
Nope. You would not want to store a calculated value. When you need the value, just recalculate it. Storing the value would lead to all kinds of trouble. What if you changed one of the dates, but forgot to fix your calculated field? Search through here and you will find a hundred posts explaining why you do not store a calculated field in a table. There are some exceptions, but I can't think of a case where subtracting two dates would be one of them. Rick B