hey folks. a little of your help needed (im quite new to this and your wisdom seems infinite)
a quick summary of what i have...
customers table
vehicles table
linked by...
sales table (1-1)
interests table (1-N)
a vehicle is either 'in stock' or 'out of stock'. whilst a vehicle is 'in stock' customers can be 'interested' in that vehicle.
1) when i make a sale of a vehicle i'd like to change its vehicle_IN_STOCK control to false. not quite sure how to go about doing that (it doesnt exist on my sales page - only its vehicle_ID).
2) also, when a vehicle is sold i'd like all of the 'interests' records for that vehicle to be deleted, since its no longer in stock, its irrelevent if people are still interested in it.
i think i need a delete query (no idea how to make one) for the second problem but i have no idea how to solve the first.
your help appreciated.
andy.
a quick summary of what i have...
customers table
vehicles table
linked by...
sales table (1-1)
interests table (1-N)
a vehicle is either 'in stock' or 'out of stock'. whilst a vehicle is 'in stock' customers can be 'interested' in that vehicle.
1) when i make a sale of a vehicle i'd like to change its vehicle_IN_STOCK control to false. not quite sure how to go about doing that (it doesnt exist on my sales page - only its vehicle_ID).
2) also, when a vehicle is sold i'd like all of the 'interests' records for that vehicle to be deleted, since its no longer in stock, its irrelevent if people are still interested in it.
i think i need a delete query (no idea how to make one) for the second problem but i have no idea how to solve the first.
your help appreciated.
andy.
Last edited: