Actually, your comment is a little backward. You should be creating
relationships using the Relationships Window to identify how each of the
tables relate to one another within the database. This information is then
used automatically when you create a query.
It's a matter of identifying the primary key / foreign key relationship.
As an example; if you have an order entry database you could have a table
for the order header information, a table for the order detail information
and a table for the customer information.
tblCustomer could contain CustomerNumber, CustomerName, ShippingAddress,
BillingAddress etc.
tblOrderHeader could contain OrderNumber, CustomerNumber, DueDate,
PaymentTerms etc.
tblOrderDetail could contain OrderNumber, OrderQuantity, PartNumber etc.
Each table is connected by a common field. OrderHeader and Customer are
related by CustomerNumber. OrderHeader and OrderDetail are related by
OrderNumber.