Leather Knight Posted June 19, 2006 Posted June 19, 2006 I have these fields: Property Name, City, Phone. I need a field to calculate the first 5 letters of Property Name, City and the last 4 phone. This will give me a unique id for this contact. Thanks
Razumovsky Posted June 19, 2006 Posted June 19, 2006 Easy enough: left(PropertyName; 5)&City&right(Phone; 4) But a poor and limiting choice for a unique ID. Why not a simple serial number? -Raz
Leather Knight Posted June 19, 2006 Author Posted June 19, 2006 Thanks Raz, A simple little thing I forgot... I cannot use a serial number, since it is sorted and the clients use this as a code for all of their reports. Converting to serial numbers would basically put them back several years. Thanks
Razumovsky Posted June 19, 2006 Posted June 19, 2006 Sure thing, but: There is no reason why the client would ever need to know of the change (keep letting them use the concatenated code for display, searches, and reporting; just adjust the behind the scenes relational structure to something that has a much less chance of producing a duplicate). Plus, you can sort by any field, not just the ID. I think you will be hard pressed to find people on this forum that think this would make a reliable ID.
Leather Knight Posted June 19, 2006 Author Posted June 19, 2006 Good point. I will implement a serial number that can be accessed as well as the code they want. This willcover all bases. Thanks
Recommended Posts
This topic is 6794 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