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

Finding data in 2 tables

Status
Not open for further replies.

jtlawn

Programmer
Mar 23, 2000
15
0
0
US
I need to be able to search 2 tables to see if a client exists. I will probably have to do the search either by last name or phone number, and the field names are different, and it is possible to multiple matches in both tables. If I join 2 tables in a query, is it true that I will only get the matches from 2 tables? If I change the join line to bring all data from one table or another will it look for matches in all fields or just the linked field? Is there code I can write that is easier and more effecient?

Thanks

Joe Lawn
joe_lawn@cardinalbuilders.com

 
Join the two by lastname.

In a query list lastname from both tables. In one of the lastname's criteria, place "not is null". That will show all the exact matches.

Place "is null" to show where they don't match.
 
Thank You,

I will give it a try and get back with on how it works.

Joe Lawn
joe_lawn@cardinalbuilders.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top