How can I pass a hidden id into a form and insert this form into the db?
For instance, if an Id is created and stored into a table and I want this id to be picked up and inserted into another table.
Sometimes a manual id is inserted into the db.
Basically, some numbers get inserted manually while some are inserted by selecting the id from another table.
How can I do this without duplicating ids.
I have added a trigger that says if number is duplicate, raise an error.
I am afraid this will anger the users.
Please advise.
For instance, if an Id is created and stored into a table and I want this id to be picked up and inserted into another table.
Sometimes a manual id is inserted into the db.
Basically, some numbers get inserted manually while some are inserted by selecting the id from another table.
How can I do this without duplicating ids.
I have added a trigger that says if number is duplicate, raise an error.
I am afraid this will anger the users.
Please advise.