Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reminder for end of the month
Message
From
14/07/2007 12:28:31
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01240440
Message ID:
01240461
Views:
13
Hi,

FWIW this will also give the date of the last day of the month:
LastDayOfMonth =  GOMONTH(DATE(),1)-DAY(GOMONTH(DATE(),1))
But, as I think you realised, this type of solution will not work unless the code is run *every* day. Your best bet is probably to follow Hilmar's suggestion and use a table with end of month dates and a flag indicating whether that particular monthly report has been printed.
HTH,
Viv

>thanks hilmar your helpful reply, but i have a question, if last date on leave day(sunday etc).how to changes this.
>
>I want to print a report.
>
>If month(date()+ 1) # month(date())
>print from 1st report
>else
>report from 2nd report
Previous
Reply
Map
View

Click here to load this message in the networking platform