Click here to Skip to main content
15,920,704 members
Home / Discussions / Database
   

Database

 
AnswerRe: Catching errors raised by SP Pin
Tushar Kothari11-Sep-06 1:10
Tushar Kothari11-Sep-06 1:10 
GeneralRe: Catching errors raised by SP Pin
Amit Kumar G12-Sep-06 16:28
Amit Kumar G12-Sep-06 16:28 
QuestionCannot edit the existing record Pin
Ranjita Ghosh10-Sep-06 21:09
Ranjita Ghosh10-Sep-06 21:09 
AnswerRe: Cannot edit the existing record Pin
Tushar Kothari11-Sep-06 1:13
Tushar Kothari11-Sep-06 1:13 
GeneralRe: Cannot edit the existing record Pin
Ranjita Ghosh11-Sep-06 1:36
Ranjita Ghosh11-Sep-06 1:36 
GeneralRe: Cannot edit the existing record Pin
Tushar Kothari11-Sep-06 1:39
Tushar Kothari11-Sep-06 1:39 
GeneralRe: Cannot edit the existing record Pin
Ranjita Ghosh11-Sep-06 1:51
Ranjita Ghosh11-Sep-06 1:51 
GeneralRe: Cannot edit the existing record Pin
Tushar Kothari11-Sep-06 2:14
Tushar Kothari11-Sep-06 2:14 
Hi

This is the tested code so please use it

Private Sub Form_Load()
Dim db As ADODB.Connection
Dim rs As ADODB.Recordset
Dim sql As String

Set db = New ADODB.Connection
db.Provider = "SQLOLEDB"
db.ConnectionString = "Provider=SQLOLEDB.1;Password=thk;Persist Security Info=True;User ID=thk;Initial Catalog=Dhanavantari;Data Source=TUSHAR"
db.Open

Set rs = New ADODB.Recordset
sql = "Select * from WardMaster"
Set rs.ActiveConnection = db
rs.CursorLocation = adUseServer
rs.CursorType = adOpenDynamic
rs.LockType = adLockPessimistic
rs.Open sql, , , , adCmdText

End Sub


on Save client button
rs.Fields(1) = trim(txtwardname.text)
rs.Fields(2) = val(txtrate.text)
rs.Update


So now you can edit the recordset and then update it
ADO is the connected type of recordset so you can update one record at a time.
If you have some other problem which i had not understand the please brief it

regards Smile | :)

Tushar kothari

Questionhow i populate the row of datagridview in edit mode Pin
tutum10-Sep-06 20:16
tutum10-Sep-06 20:16 
QuestionStored Procedure Pin
Uma Kameswari10-Sep-06 18:50
Uma Kameswari10-Sep-06 18:50 
AnswerRe: Stored Procedure Pin
_AK_10-Sep-06 20:58
_AK_10-Sep-06 20:58 
GeneralRe: Stored Procedure Pin
Amit Kumar G12-Sep-06 16:30
Amit Kumar G12-Sep-06 16:30 
GeneralRe: Stored Procedure Pin
_AK_12-Sep-06 19:36
_AK_12-Sep-06 19:36 
QuestionMethod for partially updating databases in ADO.NET? Pin
dy1310-Sep-06 17:38
dy1310-Sep-06 17:38 
AnswerRe: Method for partially updating databases in ADO.NET? Pin
Amit Kumar G12-Sep-06 16:33
Amit Kumar G12-Sep-06 16:33 
QuestionLedger Information Pin
Syed Shahid Hussain10-Sep-06 9:15
Syed Shahid Hussain10-Sep-06 9:15 
QuestionA query regarding SP's Pin
ParagGupta9-Sep-06 1:13
ParagGupta9-Sep-06 1:13 
AnswerRe: A query regarding SP's Pin
mr_lasseter9-Sep-06 5:44
mr_lasseter9-Sep-06 5:44 
AnswerRe: A query regarding SP's Pin
Eric Dahlvang11-Sep-06 3:36
Eric Dahlvang11-Sep-06 3:36 
QuestionUsing Sql Server 2000 on Windows XP Professional Pin
Rocky#8-Sep-06 21:31
Rocky#8-Sep-06 21:31 
AnswerRe: Using Sql Server 2000 on Windows XP Professional Pin
Mike Dimmick9-Sep-06 8:03
Mike Dimmick9-Sep-06 8:03 
GeneralRe: Using Sql Server 2000 on Windows XP Professional Pin
Rocky#10-Sep-06 2:53
Rocky#10-Sep-06 2:53 
GeneralRe: Using Sql Server 2000 on Windows XP Professional Pin
Mike Dimmick10-Sep-06 6:07
Mike Dimmick10-Sep-06 6:07 
GeneralRe: Using Sql Server 2000 on Windows XP Professional Pin
Rocky#10-Sep-06 20:42
Rocky#10-Sep-06 20:42 
GeneralRe: Using Sql Server 2000 on Windows XP Professional Pin
Rocky#12-Sep-06 20:26
Rocky#12-Sep-06 20:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.