W
Waylen
I would love to be able to use date and currency/number
formats, but I'm forced to keep working in text due to
the follow problem.
I work for a marketing company and we have many clients
that we export calling data back to. Most of our clients
require different date and amount formats. I end up using
text formats and I have to mid() and len() them to get
the required output in a query. This is an example of an
amount format that one of our client's need. We don't
work generally with values less than zero dollars or
greater than 9999.99 I would use the next statement to
format a currency field in the query:
amount: IIf(Len([amt])=4,Mid([amt],1,1) & Mid
([amt],3,2),IIf(Len([amt])=5,Mid([amt],1,2) & Mid
([amt],4,2),IIf(Len([amt])=6,Mid([amt],1,3) & Mid
([amt],5,2),IIf(Len([amt])=7,Mid([amt],1,4) & Mid
([amt],6,2),"A number less that 3 digits or greater than
7 has been entered"))))
I have to use similar functions for dates as well. When I
use a Date Format It's beautiful in Access and easy! dd-
mmm-yy to return 15-MAY-04 or to pad an amount field with
zeros 0000.00
However, when I use date or currency formatting I can not
export to a text delimited or a fixed with file and keep
the formatting as I intend. Please help, this has plauged
me for 2 years now.
Sincerely,
~Waylen...
PS. I'm using Access 2000
formats, but I'm forced to keep working in text due to
the follow problem.
I work for a marketing company and we have many clients
that we export calling data back to. Most of our clients
require different date and amount formats. I end up using
text formats and I have to mid() and len() them to get
the required output in a query. This is an example of an
amount format that one of our client's need. We don't
work generally with values less than zero dollars or
greater than 9999.99 I would use the next statement to
format a currency field in the query:
amount: IIf(Len([amt])=4,Mid([amt],1,1) & Mid
([amt],3,2),IIf(Len([amt])=5,Mid([amt],1,2) & Mid
([amt],4,2),IIf(Len([amt])=6,Mid([amt],1,3) & Mid
([amt],5,2),IIf(Len([amt])=7,Mid([amt],1,4) & Mid
([amt],6,2),"A number less that 3 digits or greater than
7 has been entered"))))
I have to use similar functions for dates as well. When I
use a Date Format It's beautiful in Access and easy! dd-
mmm-yy to return 15-MAY-04 or to pad an amount field with
zeros 0000.00
However, when I use date or currency formatting I can not
export to a text delimited or a fixed with file and keep
the formatting as I intend. Please help, this has plauged
me for 2 years now.
Sincerely,
~Waylen...
PS. I'm using Access 2000