Trying to create an event calendar in VFP6 report
Have a table with 2 columns, cText, dDate
Created a group based on Week(dDate) -- group by every week.
Add 7 fields for dDate value across a row, with each like
iif( dow(dDate)=1, " "+SUBS(DTOC(DDATE),4,2) +" Sunday","")
iif( dow(dDate)=2, " "+SUBS(DTOC(DDATE),4,2) +" Monday","")
.......
Set Calculation to Nothing
Put the 7 fields in Group header band.
Add 7 fields for cText value in Detail band across a row, with each like,
iif(dow(dDate)=1, ctext, ' ' )
iif(dow(dDate)=2, ctext, ' ' ) ........
Problem:
1. When the dDate fields in the group header band, only the first one displays.
If I move them into Detail Band, you can see all of them, but not in the same row.
2. Detail band displays rows in the order of records, meaning, you have a bunch of empty rows for column 2, 3, 4, 5, 6, 7.
I may need to change the format of source table and use array to achieve this. But how
Thank you for watching and help.