keepingbusy
Programmer
Hi
I have a table, part of which contains 16 date fields used for Due visits and Date visit complete. An example of the table names are FADATE01, FADATE01PR etc. These are used to record the actual date a visit is due and other fields such as FADATE01PR, FADATE02PR etc are used when the visit is actually made.
When visits are completed, it allows a report to be created showing date of visits and actual visit. This isn’t a problem as the fields are shown on a report using:
I have been racking my brains for a few days on the problem I’m trying to resolve and that is I need to add another column on the report that shows the next date due.
Here is a scenario:
FADATE01 could be 01/03/2007 and FADATE01PR could be 18/03/2007
The next due date could be contained in FADATE02 but if my condition is showing FADATE03 then the next would be FADATE04 or if FADTE04 was showing it would revert back to FADATE01
How do I find out which field meets the condition so I can add the next one to the report?
Hope that makes sense guys and thanks in anticipation.
Version used VFP6 and mdatefrom=DATE()
Lee
Windows XP
Visual FoxPro Version 6 & 9
I have a table, part of which contains 16 date fields used for Due visits and Date visit complete. An example of the table names are FADATE01, FADATE01PR etc. These are used to record the actual date a visit is due and other fields such as FADATE01PR, FADATE02PR etc are used when the visit is actually made.
When visits are completed, it allows a report to be created showing date of visits and actual visit. This isn’t a problem as the fields are shown on a report using:
Code:
NOT EMPTY(FADATE01) AND FADATE01<mdatefrom AND NOT EMPTY(FADATE01PR)
I have been racking my brains for a few days on the problem I’m trying to resolve and that is I need to add another column on the report that shows the next date due.
Here is a scenario:
FADATE01 could be 01/03/2007 and FADATE01PR could be 18/03/2007
The next due date could be contained in FADATE02 but if my condition is showing FADATE03 then the next would be FADATE04 or if FADTE04 was showing it would revert back to FADATE01
How do I find out which field meets the condition so I can add the next one to the report?
Hope that makes sense guys and thanks in anticipation.
Version used VFP6 and mdatefrom=DATE()
Lee
Windows XP
Visual FoxPro Version 6 & 9