Hi all,
I am inserting a new item into an Item table, adn I also want to insert the stock quantity into a stock table on the same form.
Problem is that the stock table uses the Item_ID which is an auto-inc from the item table. How can I get the Item_ID that it inserts for the new item, and use it in the stock table all on the same page?
I'm not sure whether it is possible, I don't mind adding a new item, going to the next page and inserting the stock quantity there, but how would I retrieve the last Item_ID?
Thank you,
sipps
I am inserting a new item into an Item table, adn I also want to insert the stock quantity into a stock table on the same form.
Problem is that the stock table uses the Item_ID which is an auto-inc from the item table. How can I get the Item_ID that it inserts for the new item, and use it in the stock table all on the same page?
I'm not sure whether it is possible, I don't mind adding a new item, going to the next page and inserting the stock quantity there, but how would I retrieve the last Item_ID?
Thank you,
sipps