Update Query based on length of value in field (1 Viewer)

barlee

Registered User.
Local time
Today, 05:03
Joined
Nov 18, 2006
Messages
30
I want to create an query that will update a field value for records where the length of the field value is less than a given number (if LEN of UniqueID is less than 6 for example), but I can't figure out how to write a SELECT query, much less an UPDATE query for this condition....can someone help me, please?
 

freakazeud

AWF VIP
Local time
Today, 09:03
Joined
Sep 10, 2005
Messages
221
re:

Hi,
just create a new expression which returns the length of the value of your field and set criteria on it e.g.:

UPDATE YourTable SET YourTable.YourField = "Something"
WHERE (((Len([YourID]))<6));

HTH
Good luck
 

Users who are viewing this thread

Top Bottom