Jon-

If tblCategory.categoryCategory is a non-numeric field (probably text),
you'll need single quotes around #FORM.category#.

You can just say "SELECT * FROM ...." to cut down on the length, but I doubt
this is causing any problems...

Good luck!

Norman Elton
Information Technology
College of William & Mary

-----Original Message-----
From: Jon Tillman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 22, 2000 11:51 PM
To: [EMAIL PROTECTED]
Subject: question about joined tables in query


Anybody know how to make this work:

    SELECT  tblProduct.*,
            tblCategory.*,
            tblCollection.*,
            tblLine.*,
            tblProductSize.*,
            tblProductWeight.*,
            tblProductColor.*
    FROM    (((((tblProduct
            LEFT JOIN tblCategory
            ON tblProduct.productCategoryId = tblCategory.categoryId)
            LEFT JOIN tblCollection
            ON tblProduct.productCollectionID = tblCollection.collectionId)
            LEFT JOIN tblLine
            ON tblProduct.productLineId = tblLine.lineId)
            LEFT JOIN tblProductColor
            ON tblProduct.productId = tblProductColor.productcolorProductId)
            LEFT JOIN tblProductSize
            ON tblProduct.productId = tblProductSize.productsizeProductId)
            LEFT JOIN tblProductWeight
            ON tblProduct.productId =
tblProductWeight.productweightProductId
    WHERE   tblCategory.categoryCategory=#FORM.category#

I know the problem is in the WHERE statement, but I can't figure out how ot
make it work...

--
***********************************************
 Jon Tillman
 LINUX USER: #141163
 ICQ: 4015362
 http://www.eruditum.org
 [EMAIL PROTECTED]
***********************************************
Help Jon build a network!
Looking for giveaway computers & parts
Current Need: Tape Drive & PI/PII processors
Email me to find out how you can help
***********************************************

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to