I have a table with four different columns that would figure date. They are all numerical...
Century (20)
Year (9)
Month (1)
Day (19)
I use the following date formula
NumberVar input := (1000000*{Century})+(10000*{Year})+(100*{Month})+({Day});
If input < 19720101 then Date (1972, 01, 01) else
Date ( Val (ToText (input, 0 , "") [1 to 4]),
Val (ToText (input, 0 , "") [5 to 6]),
Val (ToText (input, 0 , "") [7 to 8]) )
The problem is, if I put it in the select expert such as date in lastfullmonth it reads every record.
The only other thing I can think of is doing
year=9 and month=1
in february and then changing the report in March, etc.
I'm sure there is a better way to do this so I can put the info in the select expert and then the report will run for lastfullmonth, monthtodate, lastfullweek, or whatever I want, but I can't figure it out.
Any help?
Century (20)
Year (9)
Month (1)
Day (19)
I use the following date formula
NumberVar input := (1000000*{Century})+(10000*{Year})+(100*{Month})+({Day});
If input < 19720101 then Date (1972, 01, 01) else
Date ( Val (ToText (input, 0 , "") [1 to 4]),
Val (ToText (input, 0 , "") [5 to 6]),
Val (ToText (input, 0 , "") [7 to 8]) )
The problem is, if I put it in the select expert such as date in lastfullmonth it reads every record.
The only other thing I can think of is doing
year=9 and month=1
in february and then changing the report in March, etc.
I'm sure there is a better way to do this so I can put the info in the select expert and then the report will run for lastfullmonth, monthtodate, lastfullweek, or whatever I want, but I can't figure it out.
Any help?