|
-
Oct 6th, 2000, 01:06 PM
#1
Thread Starter
New Member
Newbie Needs Help with Error.
I click the button and Boom VB pops up with "Object or provider is not capable of performing this operation"
Please Help :-)
Twitch
Private Sub cmdInsert_Click()
Dim RSsql As New ADODB.Recordset
Dim connsql As ADODB.Connection
Set connsql = New ADODB.Connection
connsql.ConnectionTimeout = 25
connsql.Provider = "sqloledb"
connsql.Properties("Data Source").Value = "athome"
connsql.Properties("Initial Catalog").Value = "Logging"
connsql.Properties("User ID").Value = "graysonco"
connsql.Properties("Password").Value = "grayson"
connsql.Open
connsql.BeginTrans
RSsql.Open "SELECT * FROM SERVERADMINSERVERS", connsql
'when I debug it highlights RSsql.Addnew
RSsql.AddNew
RSsql.Fields("Server") = txtServer.Text
RSsql.Fields("IPAddress") = txtIP.Text
RSsql.Fields("HubPort") = txtHub.Text
RSsql.Fields("CPU") = txtCPU.Text
RSsql.Fields("HardDiskSize") = txtHDD.Text
RSsql.Fields("OS") = txtOS.Text
RSsql.Update
connsql.CommitTrans
RSsql.Close
Set RSsql = Nothing
connsql.Close
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|