Data Format

J

JonWayne

If you place a calculated field in a query that results to purely numeric
data, how do you get the resulting datasheet to recognize those values as
numbers rather than text? I want to use that field as a sort field and I
dont want 10 to take ascending precedence over 2, 3, 4, ...

Thanks
 
K

Ken Snell [MVP]

Wrap the expression in an appropriate function, depending upon what type of
"number" you are calculating:

Long integer:
=CLng("your expression")

Integer:
=CInt("your expression")

Double:
=CDbl("your expression")

etc.
 
J

JonWayne

Thanks , that did it. I had done that before anyway, but I wanted an
alternative because that forced me to change the field name.
 

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

Top