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

Outer Join with Blank Field

Status
Not open for further replies.

ck1999

Technical User
Dec 2, 2004
784
US
Is their a way to do a left join and if their is not an entry in the right table to have the computer to add a recordset to the right table?

I have a form populated with this outer join and am not able to edit the data stored in the right table if there is not a current record in that table.

Hope this make sense.

Chris
 
Short answer ... Yes, there is a way.

Somewhat longer answer ... Yes, but you need to have values to insert into the right table.

Just inserting values (check out the INSERT INTO statement) is straight-forward but in most business applications you probably won't have correct values available to insert at the point at which you want to do this. If you did have them then presumably they would have been inserted at some other point in the process. The fact that you have this requirement may indicate that you have a foreign key dependency that is not being enforced and you need to look at the design of the database.

[small]No! No! You're not thinking ... you're only being logical.
- Neils Bohr[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top