I have a table with a field called TX (text 15) and I would like to run a query against that field.
SELECT DISTINCT TAFL.TX, COMPANY.ADDRESS FROM COMPANY INNER JOIN TAFL ON COMPANY.COMPANY = TAFL.COMPANYCODE WHERE TAFL.TX >= [Forms]![frmMain]![txtLow] AND TAFL.TX <= [Forms]![frmMain]![txtHigh] ORDER BY TAFL.TX
Sample data ..
00.27220
05.60540
35.88000
122.70000
For example .. if I put in 30.00000 and 98.00000 in the txtLow and txtHigh fields .. it does not return the desired values.
I know .. it is a text field. But .. I cannot change it to a number field as the data is imported from a flat file that I have to massage even to get the data to the above.
The moment I change it to a double for example .. it corrupts the data.
A sample from the flat file is 000122700000 is really 122.70000
Looking for suggestions.
Thanks in advance ...
Kevin