Steve-vfp9user
Programmer
Hello
This is a follow up to a previous question I asked shown at thread184-1732500
That issue has been resolved but I am trying to establish how I achieve the following:
Each time I create an order, the ADULT table called SUPPLIER a unique number allocated (for example 58) and when items are added to that order in the CHILD table SUPITEMS the unique number (example 58) is added to those records for each subsequent item added to the order. The tables are linked on my form in the data environment via an index field called PURNLINK. That's ok and works fine.
If I now link a customer record I can also add the unique number allocated from the order (58) which links all three table records together.
My issue/question here is, if I create another order (as there may be one than one) the new order will be given a new consecutive unique number (example 59) which won't match up with the customer record.
I know I am going to need a unique somewhere to link up the order, items linked, customer record.
Is there an example in the help file and if so, what do I look for or what would you suggest I do?
Thank you
Steve
This is a follow up to a previous question I asked shown at thread184-1732500
That issue has been resolved but I am trying to establish how I achieve the following:
Each time I create an order, the ADULT table called SUPPLIER a unique number allocated (for example 58) and when items are added to that order in the CHILD table SUPITEMS the unique number (example 58) is added to those records for each subsequent item added to the order. The tables are linked on my form in the data environment via an index field called PURNLINK. That's ok and works fine.
If I now link a customer record I can also add the unique number allocated from the order (58) which links all three table records together.
My issue/question here is, if I create another order (as there may be one than one) the new order will be given a new consecutive unique number (example 59) which won't match up with the customer record.
I know I am going to need a unique somewhere to link up the order, items linked, customer record.
Is there an example in the help file and if so, what do I look for or what would you suggest I do?
Thank you
Steve