LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default NEED HELP - results to row???

Hi Folks,

i'm getting a little in-over-my-head with this small project that is turning
into a real bear...

I have a query that runs based on certain parameters that is working
properly however I am in need of returning results of multiple columns from
a single record in my db to one of two particular columns on my sheet. my
query checks for non zero values in the db for columns a - j in my db but
needs to return the results to either column f or g on my sheet.

I'm thinking I need to create an alias but can I use an alias for ten
different coulmns from my db?

SELECT DISTINCT Order.OrdrDesc, Wearer.FrstName, Wearer.LastName,
Garment.GarmDesc, Wearer.Labl, Wearer.Aloc01, Wearer.ChrgQnty01,
Wearer.Aloc02, Wearer.ChrgQnty02, Wearer.Aloc03, Wearer.ChrgQnty03
FROM Garment LMGarment, Order Order, Wearer Wearer
WHERE Wearer.RcID = Garment.WearRcID AND Order.RcID = Wearer.OrdrRcID AND
((Wearer.OrdrRcID=?) AND (Order.RcID=?) AND (Wearer.Aloc01<0) AND
(Wearer.ChrgQnty01<0) AND (Wearer.Aloc02<0) AND (Wearer.Aloc03<0))

see where this is going? I need the correct aloc and chrg quanties to
appear on the correct row. In one particular instance my db has a wearer
that has three garments allocated to them; a gown, a top, and a pant. the
aloc quantites are 3, 11, and 11 respectively. right my query returns all
the correct information for this wearer except all three rows have 3 as the
aloc value (two of the row should return 11, and I'd like that to appear in
the same column on my sheet.

Thank you all in advance!


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
#NAME? and other results. Narendra Boga[_2_] Excel Discussion (Misc queries) 3 July 21st 07 01:26 PM
Conditional Sum Argument results do not equal cell results Excel Randy R Mullins Excel Worksheet Functions 3 August 9th 06 07:16 PM
#Name? is Results Jim May Excel Programming 6 May 31st 06 12:18 AM
Wanting to write results to array instead of sheet, results overwriting.... [email protected] Excel Programming 2 October 31st 05 01:47 PM
How can I list the results of my macro without overwritng previous results? mattip Excel Programming 3 November 28th 03 03:45 AM


All times are GMT +1. The time now is 02:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"