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

DSN Less code problem

Status
Not open for further replies.

emax6

MIS
Dec 7, 2005
58
US
I have the following code(in an asp page):

DIM objConn, SQL_query, rs1
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
Server.MapPath ("/eshop/database/MajorDetail.mdb") & ";"
objConn.Open
SQL_query = "SELECT * FROM PRDDetail where PRDDetail='AA'"
RS1 = objConn.Execute(SQL_query)


When the code run, I get the following error in my browser:

Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.

What is wrong with this code?
thanks iin advance
 
The error occurs when a table's field name is incorrectly spelt or does not exist at all.

Check the query
Code:
"SELECT * FROM PRDDetail where PRDDetail='AA'"

Also check the recordset object while retrieving the rows.

Hope this helps.

Cheers,
Satish
 
Stupid me - I put the table name 2 time instead of table and row.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top