troubleshooting Question

DateDiff function won't work

Avatar of AirOgre
AirOgre asked on
Microsoft Access
7 Comments1 Solution725 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
dbase118

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros