> That is not the behavior you should expect. Try compacting the database
> containing the data (assuming a split database). If that doesn't work,
> try imorting everything into a new empty database.
>> That is not the behavior you should expect. Try compacting the database
>> containing the data (assuming a split database). If that doesn't work,
[quoted text clipped - 8 lines]
> only. There are no forms or programming associated with it. I think of it
> as a back end.
Try running a query to add five characters, like:
Update MyTable Set MyField = IIf(Len([MyField] <=5),[MyField] & "12345",
[MyField])
Now if the field MyField has 5 or less characters, it will append; 12345 to
the end of it. Go into you table and fix the data then for anything with
12345 still left, create an alias column to get your data:
GetJunk: Right([MyField],5) = "12345"
Then use 12345 as Criteria.
If there only a few records, hand delete the Junk data, or run another
update query to strip off the last 5 characters if there's more than a few.

Signature
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
Buddy - 12 Apr 2008 23:30 GMT
duh
>>> That is not the behavior you should expect. Try compacting the database
>>> containing the data (assuming a split database). If that doesn't work,
[quoted text clipped - 25 lines]
> update query to strip off the last 5 characters if there's more than a
> few.
a a r o n . k e m p f @ g m a i l . c o m - 13 Apr 2008 01:11 GMT
and for the record; this probably qualifies as some of the WORST SQL
i've ever seen in my whole life.
Even if it is 'air code'.
Update MyTable Set MyField = IIf(Len([MyField] <=5),[MyField] &
"12345", [MyField])
I mean..
surely you mean
UpdateMyTable Set MyField = MyField + '12345'
WHERE Len(MyField) < 5
I think that is a much better statement; sorry
-Aaron
> >> That is not the behavior you should expect. Try compacting the database
> >> containing the data (assuming a split database). If that doesn't work,
[quoted text clipped - 26 lines]
> --
> Arvin Meyer, MCP, MVPhttp://www.datastrat.comhttp://www.mvps.org/accesshttp://www.accessmvp.com