×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

A system which can update itself when the date ( dd/mm/yy)changes

A system which can update itself when the date ( dd/mm/yy)changes

A system which can update itself when the date ( dd/mm/yy)changes

(OP)
A system which can update itself when the date ( dd/mm/yy)changes: I have been set a task at school to make a system whereby if a record has a date which is more than 5 years ago, from today, it appears in the report. This is simple to do, you just goto the find assistant and find any records which are equal to or less than a date 5 years from now. But the date changes daily (obviously) therefore how can i make a system which updates automatically to today's date, it must update daily! Please help. Thanks

RE: A system which can update itself when the date ( dd/mm/yy)changes

This is easy to do with Approach.

1)Go into Field Definition and define a calculated field named StartDate with this formula: Today() - ((365 * 5) + 1) which covers most periods with only one leapyear included.

2) Then define another calculated field named OldRecords with this formula: If(recordfielddate <= StartDate,'Yes','No') Substitute your field date name for "recordfielddate" in the formula.

3) Go to a worksheet view of your database and add the OldRecords field to it. You will see it has been filled in with "Yes" and "No" values for you.

4) Do a Find on the worksheet and enter Yes into OldRecords. Click Ok and the found set will be those old records for your report.

5) Type a name for this Find you just ran into the field box on the Action Bar where "Current Find/Sort" is shown, or go to Create - Named Find/Sort from the menu bar and EDIT the "current find/sort" so you can give it a name.

6) Save your approach file. You can now use this newly created Find and it will automatically adjust the date for you!

This type of Find and others are explained on our support site for Lotus products at http://www.xpertss.com - register there to see the FAQs, Fixes, Tips, etc folder where all our goodies are kept, or try our Free Downloads area!

Sue Sloan

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close