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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command text and parameters

Status
Not open for further replies.

fredb23

Programmer
Mar 18, 2004
5
0
0
FR
Hello,

simple code :

Set cmd1 = Server.CreateObject("ADODB.Command")
Set prm1 = cmd1.CreateParameter("[Lowest]", adInteger, adParamInput)
prm1.Value = 2
cmd1.Parameters.Append prm1
cmd1.ActiveConnection = statistiques_connexion_STRING
cmd1.CommandText = "Parameters [Lowest] Long;" & _
"SELECT * FROM Client WHERE Client.CLCLEUNIK=[Lowest]"
cmd1.CommandType = adCmdText
cmd1.Execute



I get "Error '80040e10' Too Few Parameters. Expected 1"

I can't workout what I'm doing wrong ...
Thanks for your time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top