![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm just learning how to use ASP and I've been trying to figure out how to add records to my database. I'm learning it out of a book and have been following the code in the book except IT DOESNT WORK!!!! I have no idea why. It's maddening! My update code is attached for your kindly inspection. Thanks for whatever help you can provide. I'll need it. %@LANGUAGE="VBSCRIPT" CODEPAGE="1252"% % Option Explicit % % Dim Connect, msgRS, Query Set Connect = Server.CreateObject("ADODB.Connection") Connect.Open "appData1" Set msgRS = Server.CreateObject("ADODB.Recordset") Query = "SELECT * FROM helloWorld" msgRS.Open Query, Connect, adOpenStatic, _ adLockOptimistic msgRS.AddNew msgRS("name") = "John Doe" msgRS("Message") = "Ya did a great jeaoaearb there!" msgRS.Update % ------------------ All that is gold does not glitter Not all who wander are lost . . . -- J. R. R. Tolkien |
#3
| |||
| |||
|
|
Hi, I'm just learning how to use ASP and I've been trying to figure out how to add records to my database. I'm learning it out of a book and have been following the code in the book except IT DOESNT WORK!!!! I have no idea why. It's maddening! My update code is attached for your kindly inspection. Thanks for whatever help you can provide. I'll need it. %@LANGUAGE="VBSCRIPT" CODEPAGE="1252"% % Option Explicit % % Dim Connect, msgRS, Query Set Connect = Server.CreateObject("ADODB.Connection") Connect.Open "appData1" Set msgRS = Server.CreateObject("ADODB.Recordset") Query = "SELECT * FROM helloWorld" msgRS.Open Query, Connect, adOpenStatic, _ adLockOptimistic msgRS.AddNew msgRS("name") = "John Doe" msgRS("Message") = "Ya did a great jeaoaearb there!" msgRS.Update % ------------------ All that is gold does not glitter Not all who wander are lost . . . -- J. R. R. Tolkien |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |