<Ap******@gmail.com> wrote
I have 2 tables: Table1 and Table2.
Neither one has a primary key because each table will only have
1-record.
My form is a SingleForm unbound with tabs (my desire here).
Using this form, in the Record Source I originally had the statement
TABLE1,
and all worked fine. Now I want to open the second table as well, and
this is where my problem is.
By definition, an "unbound" Form (tabs or no) does not have a Record Source.
You use code to open a Recordset and move values from the recordset to the
Controls to populate an unbound Form. What you describe is a _bound_ form.
You can accomplish what you want simply by creating a Query, adding each of
your Tables as a data source, not trying to use any Joins, dragging down the
fields you want, and using the Query as your Record Source. That will work
ONLY because you have just one record in each Table. If, perchance,
something happens that one or both Tables have multiple records, you'll get
multiple records in the resulting Recordset.
(Using multiple tables without a Join yields a "cartesian product", that is,
each record of each table is paired with each record of the other table.
When you only have one record in each table that yields only one record. If
you had two records in each table, it would yield four records.)
Another approach would be to add a Key field of the same type to each table,
populate each with the same value, and create a join on that Field.
But, yet another approach seems to have been implied in an earlier
response -- combine the two tables into one single table. That ought to work
just fine, unless you have a total of more than 255 Fields of startup
information.
Larry Linson
Microsoft Access MVP