Jump to content
Server Maintenance This Week. ×

Convert numbers in text field to numbers in number field


Recommended Posts

I have a database of 185 records.  The record numbers are currently in a text field 'record no', Indexed, Auto-enter Serial, Required Value and Unique.  When I sort on record no, the order result is not serial but reads the first digit, so record no 3 is followed by record no 30, then 31, etc, 39 is followed by 4, etc, as it should in a text field.  However, I want to sort 1 - 180, so presumably need to change the field from text to numbers.  How can I do this without losing the data?

 

Link to comment
Share on other sites

Changing the field's type to Number should not cause any loss of data. If you're worried, keep a backup (you should always have one, regardless).

Note that simply unsorting the records will arrange them in creation order, which should accomplish the same thing.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.