The key to Rick Brandt's response is "Multi-table queries". You rarely use
these as the basis for forms. As Klatuu already said, in a One-to-Many
(1:M) relationship, you'll use a form/subform set up, where the form is
based on the 1-side table and the subform on the M-side table. However,
while you can base a form directly on the table, you cannot rely on the
sorting. That's why I recommend basing the form on a query. It doesn't
have to be much of a query. In many cases,
SELECT * FROM MyTable ORDER BY LastName, Firstname
is sufficient. In fact, I would probably do this as a SQL statement in the
RecordSource property rather than save the query.
It's not too difficult to change to this if your form is based on a table.
Just go to design view of the table and click the Builder button [...] to
the right, create the query in the Query Builder, then close the QB. It
will ask if you want to save the changes. Say yes and the SQL will be saved
in the Record Source.
As for your original question, it's hard to say without knowing exactly what
the tables are and the relationships between them. Can you be more specific?
--
--Roger Carlson
Access Database Samples:
www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
This is a real bugger!! Because I've changed all my forms to be based on
tables and deleted all the queries!! Hang on, let me find the post I
received....
This is the advice..."Multi-table queries are mostly for processing and
reporting, not for use in forms for data entry."
on this post...
http://www.microsoft.com/office/com...sign&mid=9a0a74be-188c-43ea-99a8-64fad5f886f4
:
The only reason is if you want your data sorted in your form (and most
of
the time you do). You cannot rely on a table's sort order, which is why
I
always use a query or SQL statement.
--
--Roger Carlson
Access Database Samples:
www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
Roger,
I had the same thought. I can't remember seeing any advice to use
tables
instead of queries. When there is a single table involved, I don't
know
if
there is any technical reason to prefer one over the other.
:
I rarely base my forms on tables. I always base them on a saved
query
or a
SQL statement. However, this query (or SQL statement) will rarely
involve a
JOIN of two or more tables for the reasons Klatuu mentioned.
I missed this advice. Can you point me to the thread? Regardless,
I'm
guessing the advice to "use tables" should be modified to say "use
queries
based on single tables as the record source for forms".
--
--Roger Carlson
Access Database Samples:
www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
As per advice on this forum I have based my forms on my tables now
rather
than queries. This fixed a problem but created another one.
I have one control from one table, three controls from another and
the
remainder (about 15) from the third table. How do I get this to
work?
I have tried the Control Source option in the properties and that
just
won't
work...keep returning [#Name?].
Does anyone have any idea?
Cheers+