By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,189 Members | 1,028 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,189 IT Pros & Developers. It's quick & easy.

How do I setup a Countdown Field in Access 2003 Form

P: n/a
I'm updating my asset management database I created. I would like to
put two fields in my main form under the warranty heading. The first
field will say Warranty Experiation Date and the other will be a locked
field which I want to display "Day's Left", from current date as the
user is viewing the record. Can someone help me?

Jan 7 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The DaysLeft field does not belong in a table.
Use a query, and you never have to worry about keeping it up to date.

1. Create a query that uses this table.

2. Type something like this into a fresh column in the Field row:
DaysLeft: DateDiff("d", Date(), [Warranty Experiation Date])

If you want to suppress the value once the warranty is past:
IIf([Warranty Experiation Date] <= Date(), 0, DateDiff("d", Date(),
[Warranty Experiation Date]))

More information:
Calculated fields
at:
http://allenbrowne.com/casu-14.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Blacklight" <ro**********@gmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
I'm updating my asset management database I created. I would like to
put two fields in my main form under the warranty heading. The first
field will say Warranty Experiation Date and the other will be a locked
field which I want to display "Day's Left", from current date as the
user is viewing the record. Can someone help me?

Jan 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.