C
Cheryl
I have a db that contains multiple forms that the user
fills out and prints as reports to submit as
applications. I just received a new application which
contains data from the Main Table, two other existing
tables (TableA & TableB) and new data (I created TableC).
Each table has it's own unique index. The Main Table is
RecNo. and TableA has A_ID etc. Each table also includes
a RecNo field to relate it to the Main Table. Tables A,B
& C may contain duplicate RecNo's.
The new application contains the data from all three
tables in no particular order (Field 1 may come from
TableA, Field 2 will come from TableC) so I couldn't just
create three subforms.
I created a select query (Sask_Query) that contains all
the necessary fields from Tables A,B & C. I included the
RecNo. from TableC. I created my form for the main table
with the master/child link being RecNo. from the Main
Table and RecNo. from TableC. Of course, this doesn't
work. It ends up recording the correct data in the Main
Table and TableC but the data from Tables A & B disappears
from the screen. If I go in and check the tables there
are records there that contain the data but have no RecNo.
I tried adding all the RecNo.'s in to the query and form
but, then I get an error message that "RecNo. could refer
to more than one From table of my SQL statement." I
really don't know SQL very well so, I am wondering if
there is something in my query or my relationships that I
could change to make this work.
Thanks a lot for your help.
fills out and prints as reports to submit as
applications. I just received a new application which
contains data from the Main Table, two other existing
tables (TableA & TableB) and new data (I created TableC).
Each table has it's own unique index. The Main Table is
RecNo. and TableA has A_ID etc. Each table also includes
a RecNo field to relate it to the Main Table. Tables A,B
& C may contain duplicate RecNo's.
The new application contains the data from all three
tables in no particular order (Field 1 may come from
TableA, Field 2 will come from TableC) so I couldn't just
create three subforms.
I created a select query (Sask_Query) that contains all
the necessary fields from Tables A,B & C. I included the
RecNo. from TableC. I created my form for the main table
with the master/child link being RecNo. from the Main
Table and RecNo. from TableC. Of course, this doesn't
work. It ends up recording the correct data in the Main
Table and TableC but the data from Tables A & B disappears
from the screen. If I go in and check the tables there
are records there that contain the data but have no RecNo.
I tried adding all the RecNo.'s in to the query and form
but, then I get an error message that "RecNo. could refer
to more than one From table of my SQL statement." I
really don't know SQL very well so, I am wondering if
there is something in my query or my relationships that I
could change to make this work.
Thanks a lot for your help.