Ask a Question related to ASP Database, Design and Development.
-
Flokke #1
too few parameters expect 2 - error
Hi
Can anyone help me out of this:
id2 = request.form("f_email_n")
sSQL = "DELETE * FROM newsletter WHERE e-mail='" & id2 & "'"
Set oRS = oConn.Execute(sSQL)
Gives me error: to few parameters. Expect 2....
Thank you
Flokke
Flokke Guest
-
to few parameters. Expect 2 - error
Hi Can anyone help me out of this: id2 = request.form("f_email_n") sSQL = "DELETE * FROM newsletter WHERE e-mail='" & id2 & "'" Set oRS =... -
Perl and Expect: "Error: could not connect pty as controlling terminal!"
Hi, I'm using Perl with the Expect module. Sometimes when I spawn off a new process using Expect, I see this error: "Error: could not connect... -
Error Too few parameteres expect 1
Works fine. Recid = rs("id") SQLstmt = "SELECT * FROM courses WHERE ID=" & Request.QueryString("Recid") When i combine two tables SQLstmt... -
Too few parameters. Expected error
"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message news:<OEuOwifODHA.2224@TK2MSFTNGP10.phx.gbl>... Sorry still having problems with... -
Error = No value given for one or more required parameters.
Yes, it all seems OK. But can I "test" certain areas like you can in VB with the immediate window. -
Aaron Bertrand [MVP] #2
Re: too few parameters expect 2 - error
Why do you have a dash in your column name?
Either change it to email without the dash (recommended) or surround the
column name with [square brackets].
The error indicates that the database is trying to find columns e and mail,
subtract them, and compare the result to the string id2.
Also, you don't say DELETE *, just DELETE table WHERE. You're deleting
rows, not columns, so you don't need to specify columns...
"Flokke" <Mathieu.vanneste@flockdesignNOSPAM.be> wrote in message
news:3f67097d$0$1303$ba620e4c@reader2.news.skynet. be...> Hi
>
> Can anyone help me out of this:
>
> id2 = request.form("f_email_n")
>
> sSQL = "DELETE * FROM newsletter WHERE e-mail='" & id2 & "'"
> Set oRS = oConn.Execute(sSQL)
>
> Gives me error: to few parameters. Expect 2....
>
> Thank you
>
> Flokke
>
>
Aaron Bertrand [MVP] Guest



Reply With Quote

