hi below is the code
====================
Dim objRs As ADODB.Recordset
Dim objConn As ADODB.Connection
Set objConn = New ADODB.Connection
objConn.ConnectionString = "driver={SQL Server};" & _
"server=ufobaby99;uid=niraj;pwd=abc123;database=test_niraj"
objConn.Open
[red]
Set objRs = New ADODB.Recordset
[/red]
objRs.CursorType = adOpenKeyset
objRs.Open "tbl_login", objConn, , , adCmdTable
MsgBox "1"
objRs.MoveLast
objRs.AddNew
MsgBox "2"
objRs("cod_user" = "niraj0000"
objRs("txt_username" = "niraj"
objRs("txt_pwd" = "niraj"
objRs("category" = "admin"
objRs.Update
MsgBox "Updated", vbInformation
=================================
get the following error at the highlighted line
Err Number = -2147217887
Err Desc = ODBC driver does not support the requested properties.
am using SQL Server 2000 and Windows 2000 Adv Server with VB 6.0
pls help !!!!
Niraj
====================
Dim objRs As ADODB.Recordset
Dim objConn As ADODB.Connection
Set objConn = New ADODB.Connection
objConn.ConnectionString = "driver={SQL Server};" & _
"server=ufobaby99;uid=niraj;pwd=abc123;database=test_niraj"
objConn.Open
[red]
Set objRs = New ADODB.Recordset
[/red]
objRs.CursorType = adOpenKeyset
objRs.Open "tbl_login", objConn, , , adCmdTable
MsgBox "1"
objRs.MoveLast
objRs.AddNew
MsgBox "2"
objRs("cod_user" = "niraj0000"
objRs("txt_username" = "niraj"
objRs("txt_pwd" = "niraj"
objRs("category" = "admin"
objRs.Update
MsgBox "Updated", vbInformation
=================================
get the following error at the highlighted line
Err Number = -2147217887
Err Desc = ODBC driver does not support the requested properties.
am using SQL Server 2000 and Windows 2000 Adv Server with VB 6.0
pls help !!!!
Niraj