This is a discussion on "Adding new Table to Query" within the Classic ASP section. This forum, and the thread "Adding new Table to Query are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Adding new Table to Query
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
First off my query
|
|
|
|
#2
|
||||
|
||||
|
Re: Adding new Table to Query
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#3
|
||||
|
||||
|
Re: Adding new Table to Query
I injected the code into the first part of the statement...
Having worked on the cactushop product for cactusoft you could say I know the code inside out!
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#4
|
|||
|
|||
|
Re: Adding new Table to Query
adding that gave me this error
An error occurred executing the following query, and page execution has been terminated. SELECT DISTINCT TOP 30 tblCactuShop1ProductStats.PS_DATE, tblCactuShop1Products.P_ID, tblCactuShop1Versions.V_Price, tblCactuShop1Products.P_name1, P_strapline1 FROM (((tblCactuShop1Versions INNER JOIN tblCactuShop1Products ON tblCactuShop1Versions.V_ProductID = tblCactuShop1Products.P_ID) INNER JOIN tblCactuShop1ProductCategoryLink ON tblCactuShop1Products.P_ID= tblCactuShop1ProductCategoryLink.PCAT_ProductID) INNER JOIN tblCactuShop1Categories ON tblCactuShop1ProductCategoryLink.PCAT_CategoryID = tblCactuShop1Categories.CAT_ID) LEFT OUTER JOIN tblCactuShop1Suppliers ON tblCactuShop1Products.P_SupplierID = tblCactuShop1Suppliers.SUP_ID WHERE P_Name1 <> '' AND V_Live ='y' AND P_Live = 'y' AND CAT_Live = 'y' AND V_CustomerGroupID IN (0,0) AND P_CustomerGroupID IN (0,0) AND CAT_CustomerGroupID IN (0,0) AND (SUP_Live <> 'n' OR SUP_Live IS NULL) AND P_Featured=1 ORDER BY P_ID DESC Error Description : No value given for one or more required parameters. Page of error : /xxx/clearance.asp Query String : |
|
#5
|
||||
|
||||
|
Re: Adding new Table to Query
lol.... you need a join.... one sec
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#6
|
||||
|
||||
|
Re: Adding new Table to Query
ok... as i dont have cactushop in front of me, can you please tell me all of the fields you need from the productStats table, along with all id cross reference fields in that table?
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#7
|
|||
|
|||
|
Re: Adding new Table to Query
Feilds = PD_ID , PS_ProductID, PS_Date, PS_IP
i need the data from PS_Date |
|
#8
|
||||
|
||||
|
Re: Adding new Table to Query
This is awfully difficult to do without cactushop handy, but I think this should do it
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
Last edited by Rob; Jul 31st, 2007 at 12:05. |
|
#9
|
||||
|
||||
|
Re: Adding new Table to Query
Oops... just spotted a bug... refresh the above post
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#10
|
|||
|
|||
|
Re: Adding new Table to Query
Now i get this
An error occurred executing the following query, and page execution has been terminated. SELECT DISTINCT TOP 30 tblCactuShop1ProductStats.PS_Date, tblCactuShop1Products.P_ID, tblCactuShop1Versions.V_Price, tblCactuShop1Products.P_name1, P_strapline1 FROM ((((tblCactuShop1Versions INNER JOIN tblCactuShop1Products ON tblCactuShop1Versions.V_ProductID = tblCactuShop1Products.P_ID) INNER JOIN tblCactusShop1ProductStats ON tblCactusShop1ProductStats.Product_ID = tblCactuShop1Products.P_ID) INNER JOIN tblCactuShop1ProductCategoryLink ON tblCactuShop1Products.P_ID= tblCactuShop1ProductCategoryLink.PCAT_ProductID) INNER JOIN tblCactuShop1Categories ON tblCactuShop1ProductCategoryLink.PCAT_CategoryID = tblCactuShop1Categories.CAT_ID) LEFT OUTER JOIN tblCactuShop1Suppliers ON tblCactuShop1Products.P_SupplierID = tblCactuShop1Suppliers.SUP_ID WHERE P_Name1 <> '' AND V_Live ='y' AND P_Live = 'y' AND CAT_Live = 'y' AND V_CustomerGroupID IN (0,0) AND P_CustomerGroupID IN (0,0) AND CAT_CustomerGroupID IN (0,0) AND (SUP_Live <> 'n' OR SUP_Live IS NULL) AND P_Featured=1 ORDER BY P_ID DESC Error Description : The Microsoft Jet database engine cannot find the input table or query 'tblCactusShop1ProductStats'. Make sure it exists and that its name is spelled correctly. Page of error : /heinniem/clearance.asp Query String : but the table is there |
|
#11
|
||||
|
||||
|
Re: Adding new Table to Query
You may want to check that table name... like I said, this is all from memory
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#12
|
||||
|
||||
|
Re: Adding new Table to Query
Spotted it... I used CactusShop instead of CactuShop
Please amend and retry
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#13
|
|||
|
|||
|
Re: Adding new Table to Query
you are being a great help but now i get
An error occurred executing the following query, and page execution has been terminated. SELECT DISTINCT TOP 30 tblCactuShop1ProductStats.PS_Date, tblCactuShop1Products.P_ID, tblCactuShop1Versions.V_Price, tblCactuShop1Products.P_name1, P_strapline1 FROM ((((tblCactuShop1Versions INNER JOIN tblCactuShop1Products ON tblCactuShop1Versions.V_ProductID = tblCactuShop1Products.P_ID) INNER JOIN tblCactuShop1ProductStats ON tblCactuShop1ProductStats.Product_ID = tblCactuShop1Products.P_ID) INNER JOIN tblCactuShop1ProductCategoryLink ON tblCactuShop1Products.P_ID= tblCactuShop1ProductCategoryLink.PCAT_ProductID) INNER JOIN tblCactuShop1Categories ON tblCactuShop1ProductCategoryLink.PCAT_CategoryID = tblCactuShop1Categories.CAT_ID) LEFT OUTER JOIN tblCactuShop1Suppliers ON tblCactuShop1Products.P_SupplierID = tblCactuShop1Suppliers.SUP_ID WHERE P_Name1 <> '' AND V_Live ='y' AND P_Live = 'y' AND CAT_Live = 'y' AND V_CustomerGroupID IN (0,0) AND P_CustomerGroupID IN (0,0) AND CAT_CustomerGroupID IN (0,0) AND (SUP_Live <> 'n' OR SUP_Live IS NULL) AND P_Featured=1 ORDER BY P_ID DESC Error Description : No value given for one or more required parameters. Page of error : /heinniem/clearance.asp Query String : |
|
#14
|
||||
|
||||
|
Re: Adding new Table to Query
This is doing my head in.... give me a while to troubleshoot this..
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#15
|
|||
|
|||
|
Re: Adding new Table to Query
take all the tme you need as you are being greatful enough to help
|
|
#16
|
||||
|
||||
|
Re: Adding new Table to Query
Try
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#17
|
|||
|
|||
|
Re: Adding new Table to Query
i found the problem but now i got a new one lol here is what i found
you had- ProductStats.Product_ID then feild was ProductStats.PS_ProductID but now it shows 60 of the same product lol |