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!

SImple Access Query 1

Status
Not open for further replies.

PeanutB7

Programmer
Jun 13, 2005
56
US
Hello Folks,

I have two tables inserted in a query that are linked together by last name. Table one has the last names with a designated title in a specific column labeled ID. Table two has the last names also, as well as many columns with a lot of assorted data. I need to add the title number to the records in table two in a new ID column. This is obviously easy except that not all names on table two are on table one. In this case only the names that are in table one end up in the output table of this query. I would like to add an additional tile "N/A" to the records that did not include the names on table one. Most importantly I need to make sure all record from table two are carried into the output table of this query.

I have both tables in the design view linked to gether by last name. I have all columns from table two listed in the output design. I have added the ID column from table one to pull the title forward to the corresponding records in table two. I just can not pull the null ID record forward with this query and ultimately rename the null records "N/A"

Any suggestions of how I can accomplish this in design view of the query. I am not very Access savy (as you can tell). Detailed instructions would GREATLY be appreciated.

Thank you in advance for the assistance.

JB
 
Right-click on the line joining the two tables and select Join Properties, choose Include All Records from <table you want all records from> and then click ok, you will end up with an Outer Join when you look at the SQL (SQL View).

 
Technical User

I am not quite sure who you folks are or why you answer dumb questions like mine but THANK YOU SO VERY MUCH! I searched every help site I could and no one mentioned that maneuver. It worked brilliantly!

Thank you again!

John
 

You know, it is better to answer dumb questions rather than to fix dumb mistakes..... :)

Have fun.

---- Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top