Thanks for the reply. I'm not as knowledgeable as you on p9, so some of the terms are not understood. Here goes anyway (your text as copied...mine in ALL CAPS):
The code I gave in the related post in this forum is ObjectPAL which needs to be inserted into a method.
I'M NOT SURE WHAT A "METHOD" IS...BUT WILL LOOK IT UP IN THE P9 HELP SYSTEM. BEEN LOOKING FOR A GOOD BOOK ON P9, BUT ALL I CAN FIND IS ACCESS ACCESS ACCESS.
From the posts in WP-U, I conclude that you are using a formula or calculated field.
I'M NOT SURE WHAT THE DIFFERENCE BETWEEN THE TWO IS. WHAT I DID WAS TO DEFINE A FIELD WITHIN A FORM AS A CALCULATED FIELD...AND INSERT THE FORMULA THERE.
These will only accept a limited number of functions, and don't support statements like switch.
OH WELL...THAT'S ALL I KNOW HOW TO DO AT THE MOMENT.
Some questions:
1. What decides whether the 10 day or 15 day rule is to be applied? Is there a value somewhere which can be tested? If so what are the possible values? What is this (field) object's name?
YES! THE FIELD WITH THE VALUE THAT DETERMINES WHETHER THE REPORT DUE DATE IS EITHER...
"APPT DATE" + 15
OR
"APPT DATE" + 10 BUSINESS DAYS
....IS A FIELD CALLED "AGENCY". DATA IN THIS FIELD SPECIFIES WHICH AGENCY REFERRED THE CLIENT TO ME. IF THE LETTERS IN THE "AGENCY" FIELD ARE "ABC" THEN IT'S A STRAIGHT "APPT DATE" + 15 (WHICH I ALREADY HAVE WORKING CORRECTLY). IF THE LETTERS IN THE FIELD NAMED "AGENCY" ARE "XYZ", THEN IT'S THE "APPT DATE" + 10 BUSINESS DAYS
2. What is the name of the unbound field where you want this value to be displayed?
"REPORT DUE" IS WHERE I'D LIKE THE VALUE TO BE DISPLAYED.
I DON'T KNOW WHAT AN UNBOUND FIELD IS. IS THAT ONE WHERE IT IS DEFINED WITHIN A FORM WITHOUT ACTUALLY ADDING A FIELD TO THE TABLE?
3. What is the name of the field from which you want to calculate the date (DateSeen?)?
THE NAME OF THAT FIELD IS:
"APPT DATE"
...WHICH STANDS FOR "APPOINTMENT DATE",WHICH IS WHEN I SAW THE CLIENT.
THANKS FOR THE HELP!
DAN