niwot
Technical User
- Aug 4, 2003
- 2
Have to import fixed width fields from old FoxPro. All field data must be trimmed. Lots of tables and many fields. Tried trim() in update query but it quit when it found a few records with actual spaces and nothing else. I guess you can't trim if there is nothing to trim against. Anyway can find these hard space fields with search/replace but also find fields with spaces between words that need to be kept. Example (x's are trailing spaces) Palm Beachxxxxx needs to be Palm Beach. Number of trailing space and hard spaces varies at the end of each field. Too time consuming to run the trim() funtion on every text field in every table with update query. Can I do this with code globally or by table? Only have to migrate this data once or twice but need to do it as quickly as possible. Can't change the field in FoxPro before importing. I am pretty good with VBA but no guru so make your answer as clear (easy, simple, idiot proof) as possible. Thank you.