473,395 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Microsoft OLE DB Provider for ODBC Drivers error '80040e10' - AGAIN

Hi

There seem to be a number of posts already with this error message but none of them have helped me ...

I am trying to execute some dynamic SQL from an ASP form to update or delete from a table and I get the following output:-

==
SQL=Update StockItemMaterials set [MatQuantity]=3 WHERE [StockItemCompKey]="P0855" AND [MaterialCode]="GOGGW"

Microsoft OLE DB Provider for ODBC Drivers error '80040e10'

[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.

/Apps/sv_simUpd.asp, line 44
==

The table I am trying to update is:
Select * from StockItemMaterials WHERE StockItemCompKey='P0855'

StockItemCompKey Text
MaterialCode Text
MatQuantity Number
UnitPrice Number
OverRideFactor Number
Ganoksin Yes/No
TotalPrice Number

Example Data: P0855 GOGGW 5310 0 True 0

I also get the same error when trying to delete from this table:
==
SQL=Delete from StockItemMaterials WHERE [StockItemCompKey]="P0855" AND [MaterialCode]="GOGGW"
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'

[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.

/Apps/sv_simUpd.asp, line 44
==

I have cut and pasted the SQL into an ACCESS query and it runs fine!

Thanks
Dec 28 '06 #1
2 8481
NeoPa
32,556 Expert Mod 16PB
The table I am trying to update is:
Select * from StockItemMaterials WHERE StockItemCompKey='P0855'
I'm guessing a little here :
The select query above works.
The table you're actually referring to is StockItemMaterials rather than the SQL query posted.
If so, then I would think the problem you have is that the quotes you are using (") are not generally valid SQL. They will work in Access because M$ decided to be more flexible with their SQL rules.
You need to use (') for strings in SQL as in the SQL above, then it may work.
Dec 30 '06 #2
I'm guessing a little here :
The select query above works.
The table you're actually referring to is StockItemMaterials rather than the SQL query posted.
If so, then I would think the problem you have is that the quotes you are using (") are not generally valid SQL. They will work in Access because M$ decided to be more flexible with their SQL rules.
You need to use (') for strings in SQL as in the SQL above, then it may work.
Yep - that's the answer - many thanks!
Dec 31 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: paul tomlinson | last post by:
Hi folks - i've got a windows 2000 server (SP3) i've run the IIS lockdown tool on it and set for dynamic websites - all the static pages within the site work ok but an ASP section has been put in...
2
by: Mark Sargent | last post by:
Hi All, what does the below error mean in plain English..? Cheers. Mark Sargent. Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) General error Unable to open
7
by: BrianS | last post by:
I am receiving this error anytime I attempt to connect to a MS access DSN. Not clue what happened to trigger this suddenly. Any help is greatly appreciated.
15
by: M P | last post by:
What does this mean? I am accessing an ASP page that queries Access Database thru fileDSN. I'm using IIS 5.0 Win2K SP4 Microsoft OLE DB Provider for ODBC Drivers error '80004005' General...
1
by: Albert | last post by:
Hi guys, it's nice to join the forum. Can someone can help me? After 2 years of using a program, i suddenly got this error. I tried re-installing SQL but im still getting the message. ...
1
by: Rajiv | last post by:
hi all , i m trying to coneect to a access database Using DSN dim rcon set rcon = server.CreateObject("ADODB.CONNECTION") rcon.mode = 1 ' adModeRead rcon.ConnectionString ="DSN=report" ...
0
by: jnhill | last post by:
I am running into this error code and it specifically says: "No value given for one or more required parameters. " ConStr is a valid connection, as I am able to get other data using it (not closing...
0
by: Genken | last post by:
Please assist in this error i have provided the source code. Microsoft OLE DB Provider for ODBC Drivers (0x80040E10) Too few parameters. Expected 1. <% Set objconn =...
2
by: Rheal | last post by:
Hi Can someone help me. My error is : Microsoft OLE DB Provider for ODBC Drivers error '80040e07' Data type mismatch in criteria expression. /add.asp, line 73 my codes are <% dim...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.