I have tblOPERATIONS, tblCONTAINERS, tblPRODUCTS
all of em, one-many relationship, 1 op-many containers, 1 container-many products
Sometimes, in a same operation you have dif containers but both containers may have the same products.
I have tblProducts with fields: CONTAINER_ID ,PRODUCT_NAME, QUANTIY, PRICE
So for my invoice I would be make a query that sorts out products by operation in ascendent order
OP_ID, PRODUCT_NAME, QUANTITY, PRICE
Then I would do use "while EOF" and check PRODUCT_NAME of current entry with PRODUCT_NAME of comming entry (how can i make this?) and if they are the same, delete one entry and sum quantity of that product (how to make this?).
So my questions would be, how to compare one field of an entry with the same field of the coming entry and how to delete an entry.
This merging of info should only be done per OPERATION! How would I make this criteria?
all of em, one-many relationship, 1 op-many containers, 1 container-many products
Sometimes, in a same operation you have dif containers but both containers may have the same products.
I have tblProducts with fields: CONTAINER_ID ,PRODUCT_NAME, QUANTIY, PRICE
So for my invoice I would be make a query that sorts out products by operation in ascendent order
OP_ID, PRODUCT_NAME, QUANTITY, PRICE
Then I would do use "while EOF" and check PRODUCT_NAME of current entry with PRODUCT_NAME of comming entry (how can i make this?) and if they are the same, delete one entry and sum quantity of that product (how to make this?).
So my questions would be, how to compare one field of an entry with the same field of the coming entry and how to delete an entry.
This merging of info should only be done per OPERATION! How would I make this criteria?