Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

too few parameters

Status
Not open for further replies.

cr0w

IS-IT--Management
Feb 13, 2002
3
NL
Under microsoft acces this query works fine but under asp(VBScript) I get an error too few parameters

SELECT DISTINCT Produkten.Catagorie, Produkten.ArtikelId, Produkten.Titel, Produkten.Imagepath, Produkten.Omschrijving, Produkten.Artikelnr FROM Produkten INNER JOIN (Maten INNER JOIN Kleuren ON (Maten.ProduktID = Kleuren.ProduktID) AND (Maten.MaatID = Kleuren.MaatID)) ON Produkten.ArtikelId = Maten.ProduktID WHERE (((Produkten.Catagorie)="& cat & ") AND ((Kleuren.Voorraad)>=1) AND ((produkten.status)=1)) Order by Titel
 
Did you remember to populate the variable cat?

If Produkten.Catagorie is a Text field, you'll need to encapsulate the value with single quotes. IE,

(((Produkten.Catagorie)='" & cat & "') AND

Typically, this error occurs when there is something in the SQL that Jet can't identify, ie, a misspelled field/table name,etc... Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top