What's better for database consistence? A calculated field in a Form or in a Table?
e.g I have a Table which has some Date Fields! I want to calculate them so I can to update status.
[Start Date][End Date][Status]
I have a form to insert "Start Date" and "End Date"! So where is better to calculate it?
Thanks in advance!
[Status]
? – HansUp[Status]
. With Access 2010, you can make that a calculated field in the table. However, why? You can use the same expression in a query to derive[Status]
whenever you need it. In a form, you could use a similar expression as the Control Source property of a text box --- in that case,[Status]
could update automatically whenever either of the date values change, even before those changes are saved to the table. With respect to consistency, that would only be a problem if you store[Status]
in the table. – HansUp