U
uarctos
I have 1 table with ~217k records, 6 fields (Site_id, Date, parameter,
value, remark, value_orig). Data in the value field are text strings, but are
numbers. They also contain ">" and "<" chars, null values, ZLS, white space
and other unwanted text. I've written an SQL select query to get only
"numeric" values of the strings. I want to take that output and put in in the
value_orig field.
Here's my select SQL:
SELECT Table1.*
FROM Table1
WHERE (((Table1.value)<>"" And (Table1.value) Not Like " *" And
(Table1.value) Not Like ">*" And (Table1.value) Not Like "<*") AND
((IsNumeric([value]))=True) AND ((IsNull([value]))=False))
ORDER BY Table1.value;
Here's my update SQL:
UPDATE Table1
SET value_orig = value
WHERE (((Table1.value)<>"" And (Table1.value) Not Like " *" And
(Table1.value) Not Like ">*" And (Table1.value) Not Like "<*") AND
((IsNumeric([value]))=True) AND ((IsNull([value]))=False));
I had to remove the ORDER BY function to get it to run at all, but it
returns only "blank" records for the vlaue_orig field. I tried making update
queries for each of the individual criteria - no luck.
many thanks in advance
value, remark, value_orig). Data in the value field are text strings, but are
numbers. They also contain ">" and "<" chars, null values, ZLS, white space
and other unwanted text. I've written an SQL select query to get only
"numeric" values of the strings. I want to take that output and put in in the
value_orig field.
Here's my select SQL:
SELECT Table1.*
FROM Table1
WHERE (((Table1.value)<>"" And (Table1.value) Not Like " *" And
(Table1.value) Not Like ">*" And (Table1.value) Not Like "<*") AND
((IsNumeric([value]))=True) AND ((IsNull([value]))=False))
ORDER BY Table1.value;
Here's my update SQL:
UPDATE Table1
SET value_orig = value
WHERE (((Table1.value)<>"" And (Table1.value) Not Like " *" And
(Table1.value) Not Like ">*" And (Table1.value) Not Like "<*") AND
((IsNumeric([value]))=True) AND ((IsNull([value]))=False));
I had to remove the ORDER BY function to get it to run at all, but it
returns only "blank" records for the vlaue_orig field. I tried making update
queries for each of the individual criteria - no luck.
many thanks in advance