Currency format in database field

Greetings, almighty experts -

Wondering what the secret is to displaying a number in currency format in a Frontpage 2003 database results field.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lenwrukAuthor Commented:
I ask because I have found some very valuable inisght from some of your suggestions; however, all that I have tried thus far have failed.  Here is my code:

fp_sQry="SELECT *, Format(INVOICE,'$#,000.00') AS Expr1, Format(LIST,'$#,000.00') AS Expr2 FROM VW WHERE (MODEL =  '::MODEL::')"

The fields INVOICE and LIST still show up as 123456 vice $123,456.00.

Any thoughts?
Try to select the fields instead of * then continue with the same.
lenwrukAuthor Commented:
I get a database results wizard error
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

lenwrukAuthor Commented:
Just so you know, this is what was modified:

Did you try this:

fp_sQry="SELECT Name,Address, Format(INVOICE,'$#,##0.00') AS Expr1, Format(LIST,'$#,##0.00') AS Expr2 FROM VW WHERE (MODEL =  '::MODEL::')"

Name and address fields are just an example here.  Try the new format that I put.
lenwrukAuthor Commented:
No.  I will try lower-case...
lenwrukAuthor Commented:
No, sorry:

fp_sQry="SELECT Stock-no,Yr,Model,Body,Color,Int-color,Desc,Serial,Cyl,Invoice,List,Format(INVOICE,'$#0,000.00') AS Expr1, Format(LIST,'$#0,000.00') AS Expr2 FROM VW WHERE (MODEL =  '::MODEL::')"
lenwrukAuthor Commented:
I just realized what you wanted me to actually change:

fp_sQry="SELECT Stock-no,Yr,Model,Body,Color,Int-color,Desc,Serial,Cyl,Invoice,List,Format(INVOICE,'$#,##0.00') AS Expr1, Format(LIST,'$#,##0.00') AS Expr2 FROM VW WHERE (MODEL =  '::MODEL::')"

Still no dice - damn!
lenwrukAuthor Commented:
I also tried a combnation of the two, using the formatting you suggested, and * instead of the literal field names...
So,  you are not getting errors,  you are just getting the numbers without formatting.


Take a look at this link,  it is a different approach which will work 100%

lenwrukAuthor Commented:
Thanks, but I guess I am unsure where to insert this could in the example I have, with the intention of formatting the fields INVOICE & LIST:


Keep the sql statement as it is with no formatting.  The change would be in the Red code under the variables.

You know, you have the first Webbot grey line,  under it,  you have the fp_sQry line,  under this line you have a list of variables,  under the variables you have another grey line under which the fp fields red code starts.  Here is the place to change.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lenwrukAuthor Commented:
Oh my God!  I see what you're talking about!

This is cool - I just made the change, and once I got rid of all the stuoid gray code, it worked like a charm!!!  

Thanks, dude!!!

You are welcome
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.