AndrewKonopacki
3 years agoQrew Member
Adding a counter to a value from parent table and saving in child table.
I have two tables, Projects and Samples. Samples is a child to Projects. One to Many Samples per Project.
I want to populate a field in a Samples Record with a number from the Project (Project ID) and add to it the following (-01) going up incrementally by 1 whenever I add another sample.
Example:
Project:Project ID = 22220000
Samples: Sample Number: 22220000-01
If I come back later and add another sample it would be 22220000-02, and so on. The counter starts at 01 if we are in a new project adding related samples. I hope I'm explaining it properly.
------------------------------
Andrew Konopacki
------------------------------