Protour Travel Posted November 21, 2013 Posted November 21, 2013 We have to generate monthly reports to the company regarding miles traveled and fuel purchased. These reports have to start at the beginning day of each month. As I have it now, when you start a new month, the variable ($EndDate) is set to be the date field of the last record in the portal. When the new month record opens up it has a starting date. Now it is set to SetField as $EndDate + 1. This is fine if your last entry on the previous month as on the final day of that month. However, lets say a driver makes his last trip to Austin, TX on August 26th and this is where he makes his last monthly entry to the DB. As of now, when he creates the new monthly record, the starting date is August 27th. The month needs to start on Sept 1st. Is there a set field function that will read the variable and automatically set the new report start date to the first day of the next month?
comment Posted November 21, 2013 Posted November 21, 2013 Well, yes - but if the driver hasn't made any trips in the last month, you will have the same problem.
Recommended Posts
This topic is 4293 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