outer joins all of sudden not working.

G

grace

I am hoping someone can help me with a query problem. I
created a query that has outerjoins on four fields between
two tables. See below:

tblBudget tblActuals

[JobCode] [JobCode]
[FTPTStatus [FTPTSTatus]
[OfficeNumber] [OfficeNumber]
[DeptNumber] [DeptNumber]

I want ALL fields from the tblBudget table to display and
only those fields from the tblActuals that match. My
query WAS WORKING before and is not anymore. What happens
is if there is not match in the tblActuals, the value from
the budget table doesn't display. I can not figure out why
it is not working anymore as I have made VERY few changes
to the tblBudget table. I hope this post is not too vague
for a response.

Let me know if you have questions.

Thanks, Grace
 
J

John Vinson

I want ALL fields from the tblBudget table to display and
only those fields from the tblActuals that match. My
query WAS WORKING before and is not anymore.

The most likely cause is that you have added a criterion on some field
in tblActuals. ANY criterion will require that the record in
tblActuals must exist (otherwise it won't match that criterion),
unless you change the criterion to

<somevalue> OR IS NULL

where the NULL option will pick up those records in tblBudget which
have no match in tblActuals.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top