Re: Multiple Locations
- From: A Boy Named Joe <ABoyNamedJoe@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Sep 2006 09:31:02 -0700
Thanks for your reply Duane,
I've tried a couple of times off and on (more off than on) to get the query
to run but I keep getting the following message "Syntax error (missing
operator) in query expression 'First (Bin Location Table.Bin)'. The table
which lists the part numbers and bins is called 'Bin Location Table'. Any
suggestions?
--
Joe
"Duane Hookom" wrote:
Try this SQL which assigns the bin sequence using DCount():.
TRANSFORM First(tblWhichListsPartNumbers.BIN) AS FirstOfBIN
SELECT tblWhichListsPartNumbers.[Part#]
FROM tblWhichListsPartNumbers
GROUP BY tblWhichListsPartNumbers.[Part#]
ORDER BY tblWhichListsPartNumbers.[Part#]
PIVOT "Bin" & DCount("BIN","tblWhichListsPartNumbers","[Part#]=""" & [Part#]
& """ AND BIN<=" & [Bin]);
--
Duane Hookom
MS Access MVP
"A Boy Named Joe" <ABoyNamedJoe@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:63C2F4A0-C5FC-44F7-ACEB-C40D51227561@xxxxxxxxxxxxxxxx
Good morning MS Community,
I have a table which lists part numbers in the first field and the bin
locations in the 2nd field. Since a part may have more than one bin
locations (up to 5 or 6) , the table looks like this:
PART# BIN
A1 123
A1 456
A2 789
B1
etc....
I'd like to get the information organized into a table like this:
PART# BIN#1 BIN#2 BIN#3....
A1 123 456
A2 789
So there is only one instance of the part number showing all possible bin
locations. Any suggestions?
Thanks,
--
Joe
- Follow-Ups:
- Re: Multiple Locations
- From: John Vinson
- Re: Multiple Locations
- References:
- Re: Multiple Locations
- From: Duane Hookom
- Re: Multiple Locations
- Prev by Date: Re: how to add alphabetical tabs on a database
- Next by Date: Adding a new record in code
- Previous by thread: Re: Multiple Locations
- Next by thread: Re: Multiple Locations
- Index(es):
Relevant Pages
|