General information
Category:
Coding, syntax & commands
Thanks for your replies, I will give them a try.
Becky
>>vfp 3.0
>>
>>Hello All,
>>
>>I am trying to do a batch print for example
>>
>>on the 15th of the month, I would like to print all
>>records entered for the previous month.
>>
>>Have been trying to use month() function with no luck.
>>
>>Any thoughts? Thanks and have a good day.
>>
>>Becky
>
>
Becky,
>You mean how to find start and end of prev. month ?
>ldPrevMonStart = gomonth(date()-day(date()),-1)+1
>ldPrevMonthEnd = date()-day(date())
>or you could say :
>lcYearMonPrevMonth = left(dtos(gomonth(date(),-1)),6)
>for dtos(DateField) = lcYearMonPrevMonth
>
>Cetin
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only