Returning text value instead of number

  • Thread starter Thread starter kthomas171
  • Start date Start date
K

kthomas171

The following query IIf([Subject]="holidays",[SumOfNon Chargeable],"0")
provides the value of the non chargeable field which originates as a number.
The query returns the correct value but returns it as text and not a number,
how can I rectify this?

Help please...
 
Omit the quotes around the zero:
IIf([Subject]="holidays", [SumOfNon Chargeable], 0)

Access sees the quotes, and assumes that it is Text.

If that doesn't fix it, you need to dig deeper into how [SumOfNon
Chargeable] is generated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top