473,471 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Create 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 1339
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
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...
2
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...
0
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...
2
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)...
21
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...
6
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...
1
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...
2
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
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" ...
1
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...
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
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,...
0
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...
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
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...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.