473,765 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Microsoft VBScript runtime error '800a01a8'

I guess this is a very old problem, but this keeps bugging many ppl in
many ways.

I am facing the problem with the SQL query >>>>
Insert Into DailySalesRepor t (hoautoid, dsdate, dsreport, dsclientid,
dsprincipleid, dsremarks, dsadminlock ) Values
(5,'2/16/2005','sacc',1, 1,'cdssd','not' )

This query runs fine on query analyser, but when I try to put in asp
page and then it gives the runtime error as >>

Microsoft VBScript runtime error '800a01a8'

Object required: ''

/data/dsreport.asp, line 52
Line # 52 is >>
Set oRs4 = oConn.Execute(q ry)

The whole set of code is :
<%
IF Request("action ") = "1" Then

'muname = request("T1")
'mfname = request("T2")
'mbranch = Request("T3")
mhoautoid = Session("Ssrid" )
mdate = date()
mvreport = Request("T5")
mclient = Request("T6")
mprinciple = Request("T7")
mremark = Request("T8")
malock = "not"

'Removed the date input from the page
'mdate = Trim(Request("T 4"))
'<tr>
'<td width="130">Dat e</td>
'<td width="391"><in put type="date" name="T4" size="10"></td>
'<td>Date of Entering the Record in mm/dd/yy</td>
'</tr>
'Set oRs4 = Server.CreateOb ject("ADODB.Rec ordset")
'Dim msql
qry = "Insert Into DailySalesRepor t "
qry = qry & " (hoautoid, dsdate, dsreport, dsclientid, dsprincipleid,
dsremarks, dsadminlock ) Values ("
qry = qry & mhoautoid & ",'" & mdate & "','" & mvreport & "'," &
mclient & "," & mprinciple & ",'" & mremark & "','" & malock & "')"
response.write qry
'response.end
'oRs4.Open msql
Set oRs4 = oConn.Execute(q ry)
response.write "One Record added to the database"
oRs4.close
end if
%>

So pls help ASAP... thanks in advance

sg

Nov 13 '05 #1
1 4258
On 15 Feb 2005 23:40:14 -0800, g_******@yahoo. com wrote:

oConn is not set.
Action queries like INSERT do not return a recordset.

-Tom.

I guess this is a very old problem, but this keeps bugging many ppl in
many ways.

I am facing the problem with the SQL query >>>>
Insert Into DailySalesRepor t (hoautoid, dsdate, dsreport, dsclientid,
dsprinciplei d, dsremarks, dsadminlock ) Values
(5,'2/16/2005','sacc',1, 1,'cdssd','not' )

This query runs fine on query analyser, but when I try to put in asp
page and then it gives the runtime error as >>

Microsoft VBScript runtime error '800a01a8'

Object required: ''

/data/dsreport.asp, line 52
Line # 52 is >>
Set oRs4 = oConn.Execute(q ry)

The whole set of code is :
<%
IF Request("action ") = "1" Then

'muname = request("T1")
'mfname = request("T2")
'mbranch = Request("T3")
mhoautoid = Session("Ssrid" )
mdate = date()
mvreport = Request("T5")
mclient = Request("T6")
mprinciple = Request("T7")
mremark = Request("T8")
malock = "not"

'Removed the date input from the page
'mdate = Trim(Request("T 4"))
'<tr>
'<td width="130">Dat e</td>
'<td width="391"><in put type="date" name="T4" size="10"></td>
'<td>Date of Entering the Record in mm/dd/yy</td>
'</tr>
'Set oRs4 = Server.CreateOb ject("ADODB.Rec ordset")
'Dim msql
qry = "Insert Into DailySalesRepor t "
qry = qry & " (hoautoid, dsdate, dsreport, dsclientid, dsprincipleid,
dsremarks, dsadminlock ) Values ("
qry = qry & mhoautoid & ",'" & mdate & "','" & mvreport & "'," &
mclient & "," & mprinciple & ",'" & mremark & "','" & malock & "')"
response.write qry
'response.end
'oRs4.Open msql
Set oRs4 = oConn.Execute(q ry)
response.write "One Record added to the database"
oRs4.close
end if
%>

So pls help ASAP... thanks in advance

sg


Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4812
by: Matrix | last post by:
I just got one virtual directory setup and try to run my web application from there. I am getting following error Microsoft VBScript runtime error '800a01a8' Object required: 'Session' I even try to create test.asp and put it in wwwroot folder only code I had was <% Response.write Session.SessionID %>
1
1013
by: PaulieS | last post by:
Hi all. Am migrating a customer from IIS5 on W2K server to IIS6 on W2K3. Zipped all the websites and unzipped them to the identical locations on new server. Used IISMT to migrate metabase. Got this error when I tried to run a very basic page... code: <%@ LANGUAGE=vbscript %> <%
2
15807
by: anidmarty | last post by:
Hey I'm a Sysadmin and my users are getting this error on my production box. It works fine on the dev box. There is a script that is run that generates this error. Production is clustered environment using Microsoft Application Center. This was working before and starting throwing this error about 15 days ago. any help would be much appreciated thanks
0
1562
by: raminator | last post by:
Microsoft VBScript runtime error '800a01a8' Object required: 'rs2' /login/login.asp, line 233 ------------------------------------------------------------------------------------- I get the error above when I try to log in. The following code is the code through the process. Step 1:
0
2066
by: =?Utf-8?B?TWF0dCBDYWxob29u?= | last post by:
HI there, I am getting an error on my page which calls up a web service. Microsoft VBScript runtime error '800a13ba' Unknown runtime error: 'SearchQueryXML' /SearchResults.asp, line 142
4
8847
by: Genken | last post by:
Hi can anybody help me i get this error when running this code. Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '' And then a line number indicating where the error is, i cant see any errors with this code please assist. Thanks in advance. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
4
2527
nitindel
by: nitindel | last post by:
Hi All, Please let me know that why i am getting the error like this:- Microsoft VBScript runtime error '800a01a8' Object required /Melange/MasconNet/singlesignon.asp, line 49
0
6611
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
1
10130
by: gray d newbie | last post by:
Greetings All, I'm new to this forum as well as to ASP. Therefore I am ready to learn from the ASP experts in this forum. Thank you very much in advance. I was assign to develop a ASP based website, and one of the functions offer in this site is that the end user is able to print all files located in a specific folder, and the files were actually generated in the folder based on the end user selection. After printing, the files will be...
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9951
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.