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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report based on Query when not all records match

Status
Not open for further replies.

ronphx

Programmer
Jun 24, 2004
64
US
I have a report that prints an invoice. It is based on a query that has several tables, but the problem lies with the following two tables: tblinvoice and tblship (tblship is a table which contains a ship to address that is different from the billing address). Not all invoices have a separate shipping address, so not all records in tblinvoice have a corresponding record in tblship. When I tried to set up a query behind the report, for those invoices without a ship to address, there were was no record brought up by the query. Does anyone know how to include the ship to address only when it is present?

Thanks.
 
Hi there, easy solution :) Just double click on the line between the two tables in the query design and change the join type. You probably want "show all records in tblInvoice and only the records in tblShip that match." Something like that...

Dawn

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top