G
Guest
Hi Folks,
I'm looking for some advice please. I have an orders table and a inventory
table - one to many. When the items in the inventory table are received and
used, I flag a field (closed) yes. What I would like to do is check the
inventory table per order number and when all items are closed I need to flag
the related orders table (related on orderno) closed also. Anyone have an
idea how to do this. I guess the pseudo code might look like this:
If all records with orderno 999 are flagged closed, flag the same orderno
record closed in the orders table. I would need to walk through the table
somehow to test them cause I don't want to manually check the orderno's.
Any help is appreciated.
Thank,
Bonnie
I'm looking for some advice please. I have an orders table and a inventory
table - one to many. When the items in the inventory table are received and
used, I flag a field (closed) yes. What I would like to do is check the
inventory table per order number and when all items are closed I need to flag
the related orders table (related on orderno) closed also. Anyone have an
idea how to do this. I guess the pseudo code might look like this:
If all records with orderno 999 are flagged closed, flag the same orderno
record closed in the orders table. I would need to walk through the table
somehow to test them cause I don't want to manually check the orderno's.
Any help is appreciated.
Thank,
Bonnie