genek Posted August 2, 2002 Posted August 2, 2002 I apologize if this is a repeated topic - I have searched the archives and could not find an exact solution for my seemingly simple needs. Building an elaborate contact database - elaborate only in the sense that there are lots and lots of fields per contact. I have a Reminder Date field where a user inputs a date for a follow up phone call or email. Right now, I have a simple script running every time the database is opened - if today > reminder date then displays a reminder message. How can I have it IMMEDIATELY upon opening display or go to the record(s) (contact person) that needs to be contacted? I would think this is a simple task that is escaping me. Thank you very much.
Geeksharka Posted August 2, 2002 Posted August 2, 2002 Create a script that does what you need, and then set that script to run when you open the file. You can set this up in Preferences > Documents.
genek Posted August 2, 2002 Author Posted August 2, 2002 I understand that. How can I have it upon opening (after the message is displayed), go to the record(s) (contact person) that needs to be contacted? I would think this is a simple task that is escaping me.
SteveB Posted August 2, 2002 Posted August 2, 2002 Do a find looking for all records that have the current date
genek Posted August 2, 2002 Author Posted August 2, 2002 I finally figured it out. To also include "past due" dates, I created a Date Calc field (today - Reminder Date). Then performed script/find on Date Calc >=0. The only probelm I have left is that if there are no scheduled (today or past) activities, a "no records match this request" message pops up. Is there a way to bypass this message? If not, we can deal with this. Thank for your time.
SteveB Posted August 2, 2002 Posted August 2, 2002 You need to use Set Error Capture (On). Immediately following the Perform Find, you can do a test on Status(CurrentFoundCount) = 0 if you want to take some other course of action.
genek Posted August 2, 2002 Author Posted August 2, 2002 Thanks Steve - that worked great. This is a great resource, thank you all.
Recommended Posts
This topic is 8153 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now