473,609 Members | 2,241 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with SQLattr failed please help me!!!!!!

3 New Member
Hello everyone,


Here is my coding just check anyone and tell me where is problem please send me email also on (please send me a PM) please do any one
Expand|Select|Wrap|Line Numbers
  1. <%@LANGUAGE="VBSCRIPT"%> 
  2. <!--#include file="Connections/ravi.asp" -->
  3. <%
  4. Dim raj
  5. Dim raj_numRows
  6.  
  7.  
  8. Set raj = Server.CreateObject("ADODB.Recordset")
  9. raj.ActiveConnection = MM_ravi_STRING
  10. raj.CursorType = 0
  11. raj.CursorLocation = 2
  12. raj.Source = "SELECT *  FROM employee"
  13. raj.LockType = 1
  14. raj.Open()
  15. raj_numRows = 0
  16. %>
  17. <script language="VBScript" type="text/VBScript">
  18. set.cnn = Server.CreateObject("ADODB.Connection")
  19. open.connection
  20. cnn.open("Driver= {MicrosoftAccessDriver(*.mdb)};DBQ=D:\trupti.mdb;Uid=xxx;Pwd=xxx;" )
  21. "Driver= {MicrosoftAccessDriver(*.mdb)};
  22. DBQ=D:\trupti.mdb;Uid=xxx;Pwd=xxx;"
  23. open.recordset
  24. set raj = server.CreateObject("ADODB.Recordset")
  25. strSQL= "select * from employee"
  26. raj.open strSQL,cnn,3,2
  27. insert into employee('First_name','Last_name','Telephone','Email','Comments')
  28. values("&txtfname.txt&","&txtlname.txt&","&txtteleno.number&","&txtEmail.memo&","&txtComments.txt&")
  29. if NOT raj.eof Then
  30. while NOT raj.EOF
  31. raj.movenext
  32. wend
  33. end if      
  34. </script>
  35. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  36.  
  37.  
  38.  
  39.  
  40. <FORM METHOD="post" ACTION="test.asp">
  41.     First_name<INPUT TYPE="text" NAME="First_name"><BR>
  42.     Last_name<INPUT TYPE="text" NAME="Last_name"><BR>
  43.     Telephone<INPUT TYPE="text" NAME="Telephone"><BR>
  44.     Email<INPUT TYPE="text" NAME="Email"><BR>
  45.     Comment<INPUT TYPE="text" NAME="Comment"><BR>
  46.   <INPUT name="add" TYPE="submit" id="insert" VALUE="Insert">
  47. </FORM>
  48.  
  49.  
  50.   <%
  51. raj.Close()
  52. Set raj = Nothing
  53. %>
  54. </body>
  55. </html>
May 25 '07 #1
1 1346
jhardman
3,406 Recognized Expert Specialist
Which line gives you an error and what is the error exactly?

Jared
May 25 '07 #2

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

Similar topics

2
2075
by: AnuSree | last post by:
hi am getting error when am trying to type cast.is it possible to type cast from one type of vector to another type.is there any other way other than overloading.my peice of code in which am getting error is.
2
1022
by: Gigi | last post by:
I have write a DLL server I have this problem : when I call one specific function to the inside Class i have this error : "Impossible to find the constructor demanded for deserialize a object of type DllServer.NetApi+cColl This is my Class, I have only specified the interested part Public Class NetApi
0
1023
by: RamaKrishna | last post by:
Hi All: I created a .NET web service in .NET Beta2.0...And am calling this web service from VisualBasic 6.0...using SOAP ToolKit (Both versions 2 and 3 r working fine)...It's working fine...Now i have upgraded .Net Framework from Beta 2.0 to Version 1.1 (Latest Version).......When am calling to .Net web service which was created in the latest version .NET 1.1, it's not working? Getting error like "Object doesn't support this property/ ...
2
1015
by: lemonvital | last post by:
i have a main form and i want to ada a childform,so i do it with the way such as me.controls.add code : Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click If IsNothing(lead) Then lead = New lead lead.TopLevel = False Me.Controls.Add(lead) lead.Top = (Me.Height - lead.Height) / 2
21
2305
by: c | last post by:
Hi everybody. I'm working on converting a program wriiten on perl to C, and facing a problem with concatenate strings. Now here is a small program that descripe the problem, if you help me to solve in this small code, I can solve it on my own program...you don't want to have head-ache :-) So, the problem excatly is, I built an array..just like this one.
6
1455
by: kwangbok.kim | last post by:
Hi. I'm major in computer science. While studying with the what kind of document, the problem got. Please help me. The lower part is the program... Programming with visual c++ 6.0 at windows xp -------------------------------------------------------------------------------------------- #include <iostream.h> #include <string.h>
1
1263
aprilmae36
by: aprilmae36 | last post by:
Nice day to all... Here I am again, having another problem with loops... lol... Can you please help me make a while loop program that the output will be like this: 1 121 12321 1234321 123454321 :-)
2
1255
by: angelcd | last post by:
hi guys, i have a problem on how to this kind of output, i need to write a a code regarding this output: The grade should follow the table below <50 fail 50-59 D 60-69 C 70-79 B
2
1254
missshaikh
by: missshaikh | last post by:
Hi All Friends, i have a Problem in JS. i m working on ASP2.0. I neet to use JavaScript in my page. When user enter the String in TextBox the Java Script Prompt "Enter the Number Only" Means want to validation for integers.
1
1352
by: uhdam | last post by:
Sir the dtd definition file path is to be mentioned in xml file na. in the top of xml file where i need to specify the dtd file path if i give the path as "C:/Documents and settings/Uhdam/Prj/src/Parser/dtdefintion.dtd" it shows me error and specifies that it should be in the format as below "/C:/Documents and settings/Uhdam/Prj/src/Parser/dtdefintion.dtd" So when i use methodname.getAbsolutePath(); it returns an error because it...
0
8113
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...
1
8203
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
8378
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
6981
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5504
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4007
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
4066
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2517
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.