Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change text to a number

Status
Not open for further replies.

woodyinoz

IS-IT--Management
Jan 8, 2002
215
GB
Hi all,

For the purposes of sorting, I want to change a text field into a number field so that 10000 will come out after 12000 in ascending order.

How can I do this? I've tried just changing the field properties but that, obviously, doesn't work....

Any ideas?

Thanks in advance,

Woody
 
It's ok! I've worked it out! For all of you that are interested I used:

CAST(<Column Name> AS smallint)

Cheers,

Woody
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top