I want to run a query that converts the text from the field into a number or currency field.
I have a query like :
SELECT * FROM qryProjectData ORDER BY prj.ProjectDisplayNo
I have data like.
362
362.01
362.2
362.3
362.4
362.5
362.6
362.7
362.8
362.9
362.10
362.11
I did sorting on it But result is like below.
362
362.01
362.10
362.11
362.2
362.3
362.4
362.5
362.6
362.7
362.8
362.9
Problem is it is text field, that why not sorting properly.
Need to convert it into Decimal or currency type.
Help me, if anyone have solution.
We can do it by…….
You can use
CDec,CSng, andCDblto covert text datatype to numeric, currency, sign and double..