ukaquanaut
Registered User.
- Local time
- Today, 03:38
- Joined
- Feb 8, 2012
- Messages
- 33
Hi Guys
I would appreciate some help with a query I'm trying to construct.
I have 4 basic tables.
TblIncomingItems which has supplier, description, qty, batch etc
TblSuppliers suppliername, address arrival date PONumber etc
and
TblDeliverNote has Customer, Name, Date and PONumber etc
TblProductList list the CustomerID, stock code, description, qty, batch etc
When I create a query with a join in to display the list if items with batch codes against the supplied items, I get duplicates, for example
There are specific item with the same batch that maybe delivered to us from different suppliers.
The query then adds the additional shipments of the same batch with different suppliers to the result, the customer is not unique now.
How do i make the customer display unique but still get all the supplied items listed with the same batch.
UPDATE: When I create a UNION query to do the same job, I actually get distinct customers and suppliers but I cant get my head round the output format of the query and how I would then link the batches - I'm thinking I create a temp table maybe and requiry.. your advice appreciated
Many Thanks
Jerry
I would appreciate some help with a query I'm trying to construct.
I have 4 basic tables.
TblIncomingItems which has supplier, description, qty, batch etc
TblSuppliers suppliername, address arrival date PONumber etc
and
TblDeliverNote has Customer, Name, Date and PONumber etc
TblProductList list the CustomerID, stock code, description, qty, batch etc
When I create a query with a join in to display the list if items with batch codes against the supplied items, I get duplicates, for example
There are specific item with the same batch that maybe delivered to us from different suppliers.
The query then adds the additional shipments of the same batch with different suppliers to the result, the customer is not unique now.
How do i make the customer display unique but still get all the supplied items listed with the same batch.
UPDATE: When I create a UNION query to do the same job, I actually get distinct customers and suppliers but I cant get my head round the output format of the query and how I would then link the batches - I'm thinking I create a temp table maybe and requiry.. your advice appreciated
Many Thanks
Jerry
Last edited: