Access Queries

acn4fun

New Member
Joined
Dec 8, 2004
Messages
13
I have a result set that contains data that should be included in the matching result set vs exception. It is not pulling anything vs. the table it is being compared to. I finally have the record count right but the data is wrong.

This needs to be written as simply as possible as there will be no IT support in the future.

SELECT DISTINCT Peoplesoft_ADAC_Globe_0941.Unit, [Balance sheet mapping 0941].Unit, Peoplesoft_ADAC_Globe_0941.SubAcc, [Balance sheet mapping 0941].SubAcc, Peoplesoft_ADAC_Globe_0941.Acct, [Balance sheet mapping 0941].Acct, Peoplesoft_ADAC_Globe_0941.Descr, Peoplesoft_ADAC_Globe_0941.[Account Type], Peoplesoft_ADAC_Globe_0941.DeptID, [Balance sheet mapping 0941].DeptID, Peoplesoft_ADAC_Globe_0941.Affl, Peoplesoft_ADAC_Globe_0941.Intercompany, Peoplesoft_ADAC_Globe_0941.[Base Curr], Peoplesoft_ADAC_Globe_0941.[Sum Amount], Peoplesoft_ADAC_Globe_0941.Owner, Peoplesoft_ADAC_Globe_0941.Department, Peoplesoft_ADAC_Globe_0941.Level
FROM Peoplesoft_ADAC_Globe_0941 LEFT JOIN [Balance sheet mapping 0941] ON (Peoplesoft_ADAC_Globe_0941.DeptID = [Balance sheet mapping 0941].DeptID) AND (Peoplesoft_ADAC_Globe_0941.Unit = [Balance sheet mapping 0941].Unit) AND (Peoplesoft_ADAC_Globe_0941.SubAcc = [Balance sheet mapping 0941].SubAcc) AND (Peoplesoft_ADAC_Globe_0941.Acct = [Balance sheet mapping 0941].Acct)
WHERE ((([Balance sheet mapping 0941].Acct) Is Null)) OR ((([Balance sheet mapping 0941].SubAcc) Is Null)) OR ((([Balance sheet mapping 0941].Unit) Is Null)) OR ((([Balance sheet mapping 0941].DeptID) Is Null));
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,221,831
Messages
6,162,252
Members
451,757
Latest member
iours

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top