On Jun 26, 2:27 am, Salad <o...@vinegar.c omwrote:
sharsywrote:
>
Same in the US.
>
I am simply storing the expiry dates
>
>
In your initial posts it seemed you wanted to compare them to a date.
>
It would be much simpler to filter your requests using a date field.
>
Since you don't want or need to use a date field then in the query
builder, I guess I'd drag your expiration field to 3 columns. I guess
you are storing it in MM/YY format. The first field would be for
display, the last two fields I'd parse out the year and month for
filtering purposes...I'd uncheck the Show box for them.
>
'This will create string column fields
ExpMonth : Left([C/C Expiry],2)
ExpYear : Right([C/C Expiry],2)
>
'This will create Numeric column fields
ExpMonth : Cint(Left([C/C Expiry],2))
ExpYear : Cint(Right([C/C Expiry],2))
>
Let's say you had a text box MMYY with 01/12...expires Jan, 2012.
Then you could filter to if string
<Left(Forms!You rFormName!MMYY, 2)
<Right(Forms!Yo urFormName!MMYY ,2)
In my country (Australia) credit cards have an expiry date on the them
in the format MM/YY. e.g. 09/12 would expire in September 2012 (no
specific day but in that month).
in the format MM/YY. e.g. 09/12 would expire in September 2012 (no
specific day but in that month).
Same in the US.
>
I am simply storing the expiry dates
>
of credit cards in that format.
In your initial posts it seemed you wanted to compare them to a date.
>
It would be much simpler to filter your requests using a date field.
>
Since you don't want or need to use a date field then in the query
builder, I guess I'd drag your expiration field to 3 columns. I guess
you are storing it in MM/YY format. The first field would be for
display, the last two fields I'd parse out the year and month for
filtering purposes...I'd uncheck the Show box for them.
>
'This will create string column fields
ExpMonth : Left([C/C Expiry],2)
ExpYear : Right([C/C Expiry],2)
>
'This will create Numeric column fields
ExpMonth : Cint(Left([C/C Expiry],2))
ExpYear : Cint(Right([C/C Expiry],2))
>
Let's say you had a text box MMYY with 01/12...expires Jan, 2012.
Then you could filter to if string
<Left(Forms!You rFormName!MMYY, 2)
<Right(Forms!Yo urFormName!MMYY ,2)
normally. Great! thanks heaps!!
Leave a comment: