quick! convert text field to numeric (WITH negatives)

R

R

I need quick help - can't find it! String function, usable in query, to
convert a text field to a numeric field (one that can be negative).

HELP!
 
J

John Spencer (MVP)

Val(String) should do what you want.

also, take a look at CDbl, CLng, CInt, CSng, CCur
 
R

R

Ugh, OK, here's the problem. Nice of me to notice earlier ...

The field has leading zeros... so I'm wanting to display "-9.34" when the
field actually has "0000-9.34".

And of course, the number of leading zeros varies, and not all numbers are
either positive or negative.

Thoughts?

Thanks, John.
 

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