A
a.t.brooks
Hi Guys,
I have an annoying problem and I hope you can help.
I have a db with two tables. There is a one-to-many relationship
between them with the one field being a PK autonumber on the primary
table.
I would like to create a form from the primary table with a command
button which automatically appends or creates an entry the linking
field in the 2nd many table.
i.e. If I start entering data in the primary form, the PK autonumber is
generated. Then I want to click a button which;
(a) creates an entry on the 2nd table with the same number which is the
PK of the primary
(b) opens a new form for the 2nd table showing the record with that
number. I know how to do this
(c) close the primary table. I know how to do this.
So, I would open up the primary table and start entering data. The PK
for that record would then automatically be generated. When I'm done, I
would like to click a button which takes me to the 2nd "many" form,
where I can enter data and have it automatically linked to primary
record.
There would then be another button on the 2nd table which would create
a new record with the same ID again. Thus, a one-to-many relationship
I know I can do something similar with a sub form, but I would like to
use this technique to create a cascade of forms as I have so much info
to put in it wouldn't fit on the 55" of the standard form.
Thanks in advance.
Tony
I have an annoying problem and I hope you can help.
I have a db with two tables. There is a one-to-many relationship
between them with the one field being a PK autonumber on the primary
table.
I would like to create a form from the primary table with a command
button which automatically appends or creates an entry the linking
field in the 2nd many table.
i.e. If I start entering data in the primary form, the PK autonumber is
generated. Then I want to click a button which;
(a) creates an entry on the 2nd table with the same number which is the
PK of the primary
(b) opens a new form for the 2nd table showing the record with that
number. I know how to do this
(c) close the primary table. I know how to do this.
So, I would open up the primary table and start entering data. The PK
for that record would then automatically be generated. When I'm done, I
would like to click a button which takes me to the 2nd "many" form,
where I can enter data and have it automatically linked to primary
record.
There would then be another button on the 2nd table which would create
a new record with the same ID again. Thus, a one-to-many relationship
I know I can do something similar with a sub form, but I would like to
use this technique to create a cascade of forms as I have so much info
to put in it wouldn't fit on the 55" of the standard form.
Thanks in advance.
Tony