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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I format a numeric in a pass thru (DB2 SQL)

Status
Not open for further replies.

ToyFox

Programmer
Jan 24, 2009
161
US
I have a pass-thru query that contains a field that contains a dollar value. The pass-thru is row source for a list box. How can I make the dollar value format like a currency (db2 sql)?
 
It should make any difference where the number comes from. Can't you just set the Row Source to something like:
Code:
SELECT FieldA, Format(FieldB,"Currency")
FROM qsptMyPassthroughQuery
ORDER BY FieldA;

Duane
Hook'D on Access
MS Access MVP
 
This is a pass thru written in DB2 SQL. I dont think this will work, but I will give it a try.
 
Once you have created the pass-through, it should behave like any other record source except its records can't be edited. If your numeric field displays left aligned, you may need to wrap it in Val().

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top