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 TouchToneTommy 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 error

Status
Not open for further replies.

ivalum21

MIS
Jul 14, 2004
63
US
Here is my SQL statement:

Code:
<cfquery name="EmpIn" datasource="Mileage">
SELECT EmpID
FROM Employee_Info
WHERE First_Name = '#Form.FirstName#'
	And Last_Name = '#Form.LastName#'
</cfquery>

I get a "too few parameters error. Expecting 2" error. What is the problem here?
 
IT generally means one of the fields referenced either does not exist or the name is mispelled.. this code will help you find out..

Code:
<cfquery name="ColN" datasource="Mileage">
  SELECT *
    FROM Employee_Info
   WHERE EmpID = 1
</cfquery>

<cfoutput>#ColN.ColumnList#</cfoutput>

This may return no records but it will return the column names..


ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top