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

formatting a field which may contain different data types 1

Status
Not open for further replies.

leishad

Technical User
Apr 3, 2003
88
US
I have the following fields:

Price - this is fine and formatted as currency
Price2 - created in query with the expression PRICE2: IIf([PRICE] Is Null,"**",[PRICE])

Problem: [Price2] will not display the [price] in currency format. I tried setting it thru properties but this does not work. And I tried using CCur([price]) within the iff statement with no luck as well.
 
You may try this:
PRICE2: IIf([PRICE] Is Null,"**",Format([PRICE],'Currency'))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top