Sorting Numeric Data in Text Field

G

Guest

I have a field(text data type) in a query and it contains numeric data. Because this is a text field(and I can't change it, it is a linked table to someone else's database) I can't sort the data correctly

Example

28
2

I need

2
28

How can I do this

Thanks
 
C

Cheryl Fischer

Try adding a calculated field to your query, as follows:

SortOrder: Val([MyField])

Then set the Sort: property in that column to Ascending and remove other
sorts


hth,

--
Cheryl Fischer
Law/Sys Associates
Houston, TX

Josh said:
I have a field(text data type) in a query and it contains numeric data.
Because this is a text field(and I can't change it, it is a linked table to
someone else's database) I can't sort the data correctly.
 

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