Article ID: 209135 - Last Review: June 24, 2004 - Revision: 2.0 ACC2000: How to Use Select Queries Without Join LinesThis article was previously published under Q209135 For a Microsoft Access 97-and-earlier version of this article, see 109959
(http://support.microsoft.com/kb/109959/EN-US/
)
.
Moderate: Requires basic macro, coding, and interoperability skills. This article applies only to a Microsoft Access database (.mdb). SUMMARY
Join lines between tables are used to clarify relationships between data in
the joined tables, and to sort and order the data. However, there are some
situations in which it is not necessary to have join lines between tables.
This article illustrates such a situation.
MORE INFORMATION
The sample database Northwind.mdb contains a table called Orders, which has a column called Order Date. To see all the orders placed from July 1, 1999 to August 1, 1999, you would have to use a query, because there are no join properties for unequal (greater than or less than) comparisons.
One way to see the orders from July 1, 1999 to August 1, 1999, is to create a table that holds the beginning and ending dates of the period that you want to see, and then to create a query that compares the fields in that table against the Order Date column in the Orders table. To do this, follow these steps: CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database.
REFERENCESFor more information about parameter queries and passing values from a form to a parameter query, click Microsoft Access Help on the
Help menu, type parameter query in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
| Article Translations
|
Back to the top
