G
Guest
I have a data access page with a bunch of unbound textboxes and comboboxes
with a submit button on the bottom. I am able to program the onclick of the
button to insert a record into my first main table, which is part of what I
need. What I need to have happen is that once I insert a record into this
first main table, it generates an auto number for the primary key, which I
then need to grab in order to insert a record into another joined table that
has it as the foreign key. Like I said, I have the INSERT working for the
first table, but I just need to know how to grab the primary key of one
record so I can use it in the INSERT of another joined table.
Thanks,
Matt
with a submit button on the bottom. I am able to program the onclick of the
button to insert a record into my first main table, which is part of what I
need. What I need to have happen is that once I insert a record into this
first main table, it generates an auto number for the primary key, which I
then need to grab in order to insert a record into another joined table that
has it as the foreign key. Like I said, I have the INSERT working for the
first table, but I just need to know how to grab the primary key of one
record so I can use it in the INSERT of another joined table.
Thanks,
Matt