troubleshooting Question

i need to trim leading spaces in a number field in an access 2007 table using an update query

Avatar of linbayzak
linbayzakFlag for United States of America asked on
Microsoft AccessSQL
10 Comments5 Solutions249 ViewsLast Modified:
Hi Experts,

I have some data that is inconsitent, causing a list box to populate inaccurately.  The field in question is a CaseNumber field, it should be 10 digits, and it does have leading zeros which is fine.  But, some of the records have empty spaces before the leading zeros and this is not ok.  It causes some missing data, only brings in the ones that match the casenumber on the form.  So i need to update the case number in the client table and in the trips table to erase all the empty spaces before the case number.  I've tried trim in query, but didn't get the result i wanted.  Can you help.  

This is what i tried to populate the listbox  Case Number: Val(Right([CaseNumber],10))

I would rather just update these fields in the two tables than manipulate the data in the query, but i'll take either solution if it works.  Thanks in advance,

Laura
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 5 Answers and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 5 Answers and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros