I have 2 tables being:
'bin' and 'missedbin' ,missed bin contains a foreign key or the primay key 'binID' from bin. I have set the foreign key to cascade on update & delete.
However, when a value is inserted into bin the foreign key is not updated within the missedbin table and remains null. Have I done something incorrectly?
EDIT: missedbin table:
I have 2 insert statements running in asp:
cmd.CommandText = "insert into mydb1.bin values(null,'" + binType + "','" + binColour + "','" + personIDdata + "')";
cmd.CommandText = "insert into mydb1.missedbin values (null, '" + personIDdata + "','" + dateFound + "', null)";