Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change a decimal point to a comma

Status
Not open for further replies.

Stoffman

Programmer
Apr 6, 2005
42
0
0
GB
I am trying to create an Edifact formatted payment using Access. Does anyone know how I can easily convert an amount from using a decimal point to using a comma as required is this and many other payment formats

e.g.
If a user keys in the amount 12304.45 I need to convert this to say 12304,45


I have used the INT function (within a query) to get the 12304 and I can concatenate a "," but how do I isolate the bit after the decimal point. Or am I making this to complicated.

Any help would be good.

Cheers Stoff
 
newAmount = Replace(oldAmount, ".", ",")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks for your help. I couldn't see the forest for trees.

Cheers Stoff
 

That's because with all these "paperless" offices, there's too d&*@ many trees!

;0)>

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top