Access and SQL
Discussion
I have a text field with various data, some text, some text as numbers
I can't change that field to a numeric field due to loss of data
Writing an SQL Querry, I want to select data by having the potential value of that field over a given number (let's say 100)
What is the command in SQL to convert from text to value?
>>> Edited by Jay-Aim on Friday 3rd December 10:57
I can't change that field to a numeric field due to loss of data
Writing an SQL Querry, I want to select data by having the potential value of that field over a given number (let's say 100)
What is the command in SQL to convert from text to value?
>>> Edited by Jay-Aim on Friday 3rd December 10:57
pdV6 said:
CAST([fieldname] as <type> )
N.B. Smells of iffy database design if you even need to think about this kind of thing!
>> Edited by pdV6 on Friday 3rd December 11:03
Ta and yes I agree
unfortunately I'm left with having to deal with it as it is and as it is from a running program, I can't modify it.
>> Edited by Jay-Aim on Friday 3rd December 11:38
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


