okay, heres whats happening. i have a 5 file relational DB, (members -> sale <-item <-product <- supplier) and my problem lies within the sale file and item/product
sale is related to item by item_id which is related to product by product_id.
[item_id is a calculation field (Left(Product Name , 10 ) & Left(Platform , 4 ) & Case(x < 10, "0" & x) so that when the script is run, i have "game01", "game02", "application01", "application02" and not just "game01", "game02", "application03", "application04" if you get what i mean. - anyway, thats moot, since that all works, i just added it in case it is relevant and i just dont know it]
this is what i want to achieve
10 copies of a certain item
game01
game02
game03
etc.
i want to write a script, so that when i select one of these items in the main file(sale) and hit update, the item is taken off the available list so that it can no longer be selected and used in further transactions.
i.e
member x purchases game01; game01 is no longer available
member y purchases game02
as it currently is
member x purchases game01
member y purchases game01
unique field for each transaction is recorded by (member_ID & item_ID)
added with my duplicate script (which also works fine) there are no duplicates, but i simply want to make the database more true to life in that if it were a real store, once a game has been purchased, it can no longer be purchased.
i understand that you may think this is "lazy students posting homework" as mentioned just under the box in which i am typing this into, but it isn't.
i am genuinely seeking help to my problem, and any help that you can offer to my situation would be appreciated.
If any of what i have posted is unclear, please dont hesitate to ask.
thankyou!
James
sale is related to item by item_id which is related to product by product_id.
[item_id is a calculation field (Left(Product Name , 10 ) & Left(Platform , 4 ) & Case(x < 10, "0" & x) so that when the script is run, i have "game01", "game02", "application01", "application02" and not just "game01", "game02", "application03", "application04" if you get what i mean. - anyway, thats moot, since that all works, i just added it in case it is relevant and i just dont know it]
this is what i want to achieve
10 copies of a certain item
game01
game02
game03
etc.
i want to write a script, so that when i select one of these items in the main file(sale) and hit update, the item is taken off the available list so that it can no longer be selected and used in further transactions.
i.e
member x purchases game01; game01 is no longer available
member y purchases game02
as it currently is
member x purchases game01
member y purchases game01
unique field for each transaction is recorded by (member_ID & item_ID)
added with my duplicate script (which also works fine) there are no duplicates, but i simply want to make the database more true to life in that if it were a real store, once a game has been purchased, it can no longer be purchased.
i understand that you may think this is "lazy students posting homework" as mentioned just under the box in which i am typing this into, but it isn't.
i am genuinely seeking help to my problem, and any help that you can offer to my situation would be appreciated.
If any of what i have posted is unclear, please dont hesitate to ask.
thankyou!
James