Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7673959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:37:52+00:00 2026-05-31T16:37:52+00:00

I really don’t understand this. I have a simple ASP with 3 div in

  • 0

I really don’t understand this. I have a simple ASP with 3 div in it.
Each div has some HTML with list boxes fills values when page loads.

When ever I run this page, Most of the times it works ok but 3 times out of approx 10, i get this.

Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.
/order_tracking/order_admin.asp, line 269

This line has this query written: THIS IS THE FIRST QUERY ON THE PAGE Error It say on the line where rsRecordSet.Open is written

<%Set rsRecordSet = Server.CreateObject("ADODB.Recordset")
rsRecordSet.Open "select top 1 * from orders  order by id desc", cn
While not rsRecordSet.EOF
%>
<input type="text" size="15"  id="last_order_no" name="last_order_no" value="<%=rsRecordSet("order_no")%>" disabled="disabled"/>
<%rsRecordSet.MoveNext
Wend
If rsRecordSet.State = adStateOpen Then rsRecordSet.Close
Set rsRecordSet= nothing
%>

Please suggest whats wrong…i would appreciate.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:37:53+00:00Added an answer on May 31, 2026 at 4:37 pm

    Sounds like internal database problem if it sometimes work and sometimes it doesn’t work.

    Do you have lots of traffic? If so, you better move to modern database like SQL Server or MySQL.

    Anyway, I will try those things first and see what happens:

    1. Change the code to be:

      Set rsRecordSet = cn.Execute("select top 1 * from orders  order by id desc")
      

      Why it might work? Because the Open method is using cursors and locks that might be “heavy”. Using Execute of the connection itself should be as “light weighted” as possible.

    2. Change the SQL statement to be:

      "select top 1 [order_no] from [orders]  order by [id] desc"
      

      Maybe it will help – Access is sensitive about field names sometimes.

    3. Change the code to:

      rsRecordSet.Open "select * from orders  order by id desc", cn
      IF not rsRecordSet.EOF Then %>
          <input type="text" size="15"  id="last_order_no" name="last_order_no" value="<%=rsRecordSet("order_no")%>" disabled="disabled"/> <%
      End If
      

      Maybe the Select Top is doing some nasty stuff behind the scenes.

    4. As last resort before giving up, write Stored Procedure returning that single record and use it instead of raw SQL statement.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have very simple situation and really don't have a clue why this isn't
I really don't think this has anything to do with ASP.NET MVC 2 itself,
I really don't want to have to reinvent the wheel with this one. There
I really don't understand what I'm doing wrong, but according to Adobe, this is
I really don't know how to title this question, but I need some help
I have this json object (which i don't really know what is inside) and
I really don't understand why do we need to create channel.html file, as mentioned
I have this problem and really don't know how to solve this. I'm having
I really don't understand why this function doesn't work: function GetNomRepertoireTemporaire:WideString; var PathLocal :
I use this code to get Server Date but I really don't understand.CreateDateTime() is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.