You could put some if statements in you code to check the month and if its only got 28 or 30 days then print the invoices for the next couple of dates
Eg.
VB Code:
'Do processing for today If Month = "february" then If day = 28 then 'Process invoices for 29,30,31 End if Else if Month = "april" then If day = 30 then 'Process invoices for 30,31 End if
Etc.. etc... etc...
then if its the end of the month it will just process the rest of the dates
You may want to fiddle with feb if you don't want the 29th feb processed on the 28th feb during a leap year, but if you don't care then wolah.
Hope this sheads some light
Cheers
hojo




Reply With Quote