query help. its duplicating values erg!

mcamp

New Member
Joined
Jun 29, 2009
Messages
40
Ok so I have a query

table A contains all those children who signed into class. who are considered to be receiving "Direct Service"

Table B contains the entire families associated with those children- siblings who are considered to be receiving "Indirect Service"

all connected by FamilyID

Table A has a field called DirectSvc with a default value of 1, as everyone in it is receiving direct svc

table b does not have this field

when I run the query, it is copying down 1's in the 'DirectSvc' field for all children when there should only be 1's on those children from table A, as they all have 1's associated with them. all children from table B should be yielding a null or blank value as that table does not even have this 'DirectSvc' field.

why is it copying 1's down for everyone? I cannot seem to figure it out, and now I have no way of determining who is receiving direct svc and indirect svc, which is the whole reason for the query.

help please! thanks!!!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
is there some way I can pull everything from table B thats not equal to table A??

IE.... Table A........Table B...........qy recordset
.......John Doe ..... Marry Doe ........ Marry Doe
..........................John Doe ......... Bob Doe
...................... ....Bob Doe

then I would know all those in that query had 'indirect service' and could assign them values of 0

?????????
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,733
Members
452,939
Latest member
WCrawford

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