Newbies saranyc1 Posted September 29, 2008 Newbies Posted September 29, 2008 Hello. This seems simple, but I can't remember how one might do this. I have a lot of records that need to be assigned IDs so as to relate them to records in another table. The trouble is that they are all spelled inconsistently and there are slight variations that would need the same assignation. I wanted to build a case function like this: Case( b_MatName = *"B&B"*, "038", b_MatName = *"PVC"*, "044", b_MatName = *"curb"* "012", "") I've tried this both with and without the quotes and with the quotes in and outside of the asterisks.... no avail. Any thoughts? Thanks, Sara
David Jondreau Posted September 29, 2008 Posted September 29, 2008 Check out the function called PatternCount().
Genx Posted September 29, 2008 Posted September 29, 2008 Just a side note, the default option in your case statement is not necessary e.g. you can write it without that last empty string: Case( b_MatName = *"B&B"*, "038", b_MatName = *"PVC"*, "044", b_MatName = *"curb"* "012")
Recommended Posts
This topic is 5958 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