General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
>If in first text box value= oct 2009, i want value in 2nd text sep 2010 where year=1
>
>If in first text box value= oct 2009, i want value in 2nd text sep 2011 where year=2
>
>
>increase 12 month
>
>thanks
You can call this procedure to fill your second text box passing the date stored int the first and the number of years you want to skip
procedure nextdate
parameters xDate, xnumYears
private lData
lData = gomonth(xdate,(xnumyears*12)-1)
retu cmonth(ldata) + ' ' + alltrim(str(year(ldata)))
Previous
Next
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