Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linked Table Contains Specific Records

Status
Not open for further replies.

eric333

IS-IT--Management
Nov 3, 2007
76
US
Hi,

I have a report with two tables - packages (table 1) and statuses (table 2). There is a common column in both tables for linking - that is the package number. Each time there is a change in the package's status, an entry is made in Table 2. For example, V for verified, X for destroyed, S for sent. I am trying to identify certain types of packages (using a column in the packages table that identifies the package type) where there is not an entry in Table 2 with code S (for sent).

I tried a select statement of:

{Table1.Type} = "1" and
not ({Table2.Status} in ["S"])

But, that did not work properly. It returned all instances of a Package Type 1 regardless of whether or not the package as a Status of S.

Thanks in advance for any suggestions.
 
What is join between two table inner or left outer?

Try using an inner (Equal) join, that should work.

Ian
 
I tried both. A friend helpmed me build a SQL view so I'm good now. Thanks anyways!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top