This topic is locked

-2147217904

5/9/2003 1:09:58 PM
ASPRunnerPro General questions
Y
youme2 author

I have a simple database that i am using an ODBC connection and when ever i try to delete a record or edit a record i get this error
-2147217904
Please help
Paul

Sergey Kornilov admin 5/9/2003

Paul,
what is the full error description?
Sergey Kornilov

Y
youme2 author 5/9/2003

Edit record [CD-ID: ARRAV0002]
--------------------------------------------------------------------------------
ASP error happened
Technical information

Error number -2147217904

Error description [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

URL /archivecd/tblMain_edit.asp

SQL query select [CD-ID],[CD-ID] ,ClientName ,DateArchived ,ArchiveType ,Volume ,VolumeTotal ,JobNumber ,Office ,OfficeAbv ,BusinessUnit ,BUAbv ,IDNumber from [tblMain] where [CD-ID]=ARRAV0002

Y
youme2 author 5/9/2003

Figured this one out.
I changed my field name from CD-ID to DiskID

I assume the hyphen was throwing it off.
Paul

500981 1/13/2004

Make sure the code for the "Create New" and "Edit" is creating the correct SQL statements on the edit page for each action. Somehow mine was pulling in a extra field for the create new action. I could edit and delete, but the new one would not work. I updated the code that ASPRunner made, taking out the extra field and it worked.
That extra field was from another table I was using in the same project.
Hope this helps.
RD

R
RDoherty 1/13/2004

Sorry -- I registered after that last post. This has my e-mail.
RD

Sergey Kornilov admin 1/13/2004

RD,
could you zip and send me your asp files along with sample database?

Just send it to support AT xlinesoft.com.
Best regards,

Sergey Kornilov

500982 2/25/2004

I have the same problem. The SQL statement has too many parameters because the code generated uses the fields from the wrong table. The generator window viewer looks OK though.
Has there been a fix on this?
James

Sergey Kornilov admin 2/25/2004

James,
you can get more help if you post your error message and actual SQL query here.