View Full Version : Update a field in a table


Berti
10-16-2007, 06:39 AM
I have to update a field in a table with some values from an excel file. Before I update the field in Access, I want to check if there are any letters stored in this field that I just imported from excel in a separate table. If there is logic, where do I run the code in what event property so it will check all the records at once?
Thanks

Pat Hartman
10-18-2007, 06:56 PM
You could use a query if you wanted to check all the records at once but what do you want to do if a record has an error?

Berti
12-01-2007, 08:51 AM
You could use a query if you wanted to check all the records at once but what do you want to do if a record has an error?

What is the select statement in a query to check if there is a letter stored in this field? I want to see all records if there is a letter.
E.G Field1=1234
Field1 =12L4
I want the query to display record 2 12L4
Thanks

Pat Hartman
12-02-2007, 12:37 PM
Select * from yourtable
Where IsNumeric(yourfield) = false;

Berti
12-03-2007, 06:46 AM
Select * from yourtable
Where IsNumeric(yourfield) = false;
Thanks a lot. It worked!