rovolution2
08-05-2008, 09:54 AM
I want to make a query only do formatting if a certain set of criteria are met (field value does not equal 0 or null).
Can i do this after i type the SELECT statement, such as:
SELECT IIf([Field] = 0 OR [Field] IS NULL, [Field] AS [FieldRep], Format([Field] AS [FieldRep], '0.00%')) FROM table;
Is a statement like the above possible? Thanks
Can i do this after i type the SELECT statement, such as:
SELECT IIf([Field] = 0 OR [Field] IS NULL, [Field] AS [FieldRep], Format([Field] AS [FieldRep], '0.00%')) FROM table;
Is a statement like the above possible? Thanks