Wickerman Posted September 12, 2018 Posted September 12, 2018 I have a field I am trying to clean up that has had inconsistent data-entry practices over time. One area of variation is capitalization. When I popped open the index I saw things entries like things like: Drama / comedy / Silent cinema / Silent Cinema / silent cinema . . . So, I used TextStyleAdd(FIELD ; Titlecase) to replace all the values with consistently capitalized words. Worked great. Then i went to the field's Options panel and turned OFF indexing, saved changes, shut down the database, reopened, and then went back and set indexing to 'Minimal' since I'm just interested in the Values, not the individual words. I saved, quit the database and reopened . . . But when I enter the field, I STILL get the old uncapitalized versions of the values, even though there are no such entries any longer. When I search on "comedy" by clicking the term in the index, I get hits on "Comedy" -- there are no longer any "comedy". So, how can I get those uncapitalized entries out of the Index?
comment Posted September 12, 2018 Posted September 12, 2018 The TextStyleAdd() function does not modify the actual characters stored in the field - it merely styles them for display. To achieve your stated purpose, you need to use the Proper() function (and you should also add TextFormatRemove() to undo what you did). 1
Tom Assia Posted September 12, 2018 Posted September 12, 2018 Hello, Just in addition of comment post, if ou want to rebuild and index of database you could use SQL with drop index and then create index. Tell me if you want an example Tom
Wickerman Posted September 12, 2018 Author Posted September 12, 2018 (edited) Thanks Tom, I appreciate the offer, but comment's suggestion was on point, as usual Thanks to you both! Edited September 12, 2018 by Lee Smith corrected spelling of comment's name
Recommended Posts
This topic is 2282 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now