![]() |
| SQL Error |
|
Josh
Forum Regular
|
TABLE STRUCTURE
SELECT Product.ProductID, Product.Product, License.License, CPU.Desc, CPU.Assigned FROM Product INNER JOIN License ON License.ProductID = Product.ProductID INNER JOIN CPU ON CPU.CPUID = License.CPUID WHERE [Product].CategoryID=1 AND [Product].VendorID=1 This is with an access DB using ASP.NET... wtf's wrong with that? Here's the error
|
||||||||||||||||
|
|
|||||||||||||||||
|
bobum
Elvis Fanatic
![]()
|
Try enclosing your CPU.Desc in brackets ala CPU.[Desc]
After all - Desc is a SQL reserved word... |
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
ahhhh yes!!! Good eye!!! Eye didn't see that
|
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
****... still didn't work. Same error, same place.
|
||||||||||||
|
|
|||||||||||||
|
bobum
Elvis Fanatic
![]()
|
Access may be different but I recreted your table structure and that query in SQLServer and that fixed it for me...without the [] I got your error...with em it was ok...I dunno what else to tell you.
|
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
Yeah... unfortunately I don't have the option of MSSQL or I would have used that... GRRRR!!!
I hate access... I don't know why it hates me though... |
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
Okay... fixed it... this is the most retarded "answer" i've found to date... I had to wrap a section of my FROM clause and my first (but not the second) INNER JOIN in parentheses...
*kicks access* |
||||||||||||||
|
|
|||||||||||||||
| SQL Error |
|
||
|



