I'm trying to make a table in Access that can tell me how many days are left until a specified date. For example, today is August 24, 2002, and I have a field where I have something due on August 30, 2002. Another field, labed DaysLeft would be 6. This number would have to auto-update as I can change the field DateDue. I can't even get the DateDiff function working as default value. Heres what I put:
Default Value: DateDiff("d",Date(),[DateDue])
Now when I put that it gives me the following error:
"The database engine does not recognize either the field 'DateDue' in a validation expression, or the default value in the table 'Table'."
I'm new to access and I have no idea whats wrong, can someone plz help me?
*Edit* I'm using Microsoft Access 2002 on Windows XP