Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / November 2007

Tip: Looking for answers? Try searching our database.

Linking 2 Queries

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kennedys21 - 20 Nov 2007 14:15 GMT
I am having a little issue with queries.  I have 2 queries. Query A has the
fields [Tote Number], [Part Number], and[Unit Qty], and Query B has the
fields [Tote Number], [Part Number], and [Qty Picked].  Query A by it self
has 298 records and Query B has 305 records, but when I link them by [Tote
Number] and [Part Number] it is only giving me a total of 108 records.  The
main purpose of this query is to show [Unit Qty] compared to [Qty Picked].

Any information would be greatly appreciated!
Pat Keller - 20 Nov 2007 15:11 GMT
There's nothing wrong with the query logic... you have to look at the data.  
Are the fields you're linking (joining) on always exactly the same.  Are
records mising on one or the other implying that, for example, Qty Picked was
zero if there is no record in Query B?  Joining tables only works when the
data values are exactly the same - including things like physical trailing
spaces which may look identical to the eye but, in fact, are not.  Look at
the data that's NOT coming up from one and try to find them in the other - I
would suspect you'll not be able to.  I'd say that you probably have exactly
108 records where Tote and Part match exactly.

> I am having a little issue with queries.  I have 2 queries. Query A has the
> fields [Tote Number], [Part Number], and[Unit Qty], and Query B has the
[quoted text clipped - 4 lines]
>
> Any information would be greatly appreciated!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.