>Hi,
>
[quoted text clipped - 9 lines]
>I need it to be a value in excel without having to do any manipulation in
>excel. I want this file to be all auto.
Well... the "value" of a control can be Text, or Number, or Date/Time, or
Yes/No or any other valid datatype. I think you mean you want it to be a
number.
It's not being treated as a number because in your IIF statement you're
forcing it to be Text with the "" option. Access will compare the datatypes of
each possible result of the IIF and go with the "lowest common denominator";
since you can store a number in a Text field but you cannot store text in a
Number, if one of the choices is a literal text string (even an empty string),
the result of the IIF will be returned as Text.
Try replacing the "" with either NULL or some number which you will recognize
as a "no value supplied" number - 0, -999, whatever works in your application.

Signature
John W. Vinson [MVP]
Schwimms - 25 Feb 2008 18:01 GMT
HAHA!!!
That works! Thank you. Access is very picky.
> >Hi,
> >
[quoted text clipped - 23 lines]
> Try replacing the "" with either NULL or some number which you will recognize
> as a "no value supplied" number - 0, -999, whatever works in your application.