Hello,
I have a table (Loreal) with records that contain basic information fields, i.e., Project Title, Customer service rep, Project Number (Kp_projectID).
When I create a new record, the key field is auto-enter serial. However, I allow modification, BUT do not allow any entry to the field, so users can't alter the number.
From this table, I create a "Quote" which entails 3 related tables, and all are keyed to (Loreal)
All that works just fine.
If a re-quote is needed, I want to duplicate the (Loreal) record, copy the original key into the duplicated record, then add an "A" after. So going from 00012 as the original, to 00012A as the duplicate. Then I create a quote for the 00012A, and everything works, and all the keys do what they should.
I have been spinning my wheels, trying different combinations of functions, but no luck. This is what I have so far...that actually works.
Set Variable [$projectID; Value:Loreal::__Kp_projectID]
Duplicate Record
Set Field [Loreal::__Kp_projectID; $projectID]
My goal is to check the $projectID last character. If it has no letter, I want to add an "A", if it has an "A" I want to replace the "A" with a "B", etc.
I hope this request is understandable.