stormtrooper
Programmer
Hi there. I have a report in CR7 that is scheduled to run every morning at 3am. Now, my problem is that I have a selection formula that selects records for month-to-date. For example, today is Nov.1/02, the report runs at 3am Nov.1/02. I will only get records that are present from 12am to 3am, which is correct. But if the report is run on the previous day (Oct.31/02), I will never see data that occurs on Oct.31/02 except for the data that occurs between 12am Oct.31 to 3am Oct.31. What I'm getting at is that for the period of 3am Oct.31/02 to 11:59pm Oct.31/02, that data will never be reported on.
This is what I'm thinking of:
If Day({dt_field}) = 1
Then select the month number of the previous month
Else ({dt_field}) In MonthToDate
That's all I ave thought of so far. I hope this isn't too confusing. Any help would be appreciated.
Thanks
This is what I'm thinking of:
If Day({dt_field}) = 1
Then select the month number of the previous month
Else ({dt_field}) In MonthToDate
That's all I ave thought of so far. I hope this isn't too confusing. Any help would be appreciated.
Thanks