Click here to Skip to main content
15,909,437 members
Home / Discussions / Database
   

Database

 
AnswerRe: Condition as parameter of sp ... ? Pin
Eric Dahlvang11-Sep-06 3:08
Eric Dahlvang11-Sep-06 3:08 
QuestionNavigation buttons Pin
Ranjita Ghosh10-Sep-06 21:41
Ranjita Ghosh10-Sep-06 21:41 
AnswerRe: Navigation buttons Pin
Tushar Kothari11-Sep-06 1:06
Tushar Kothari11-Sep-06 1:06 
GeneralRe: Navigation buttons Pin
Ranjita Ghosh11-Sep-06 1:48
Ranjita Ghosh11-Sep-06 1:48 
QuestionCatching errors raised by SP Pin
Uma Kameswari10-Sep-06 21:40
Uma Kameswari10-Sep-06 21:40 
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 
:(Hi Everybody!
I am using VB6.0 & SQL Server 7.0
Following is my database Connection code

Dim db As ADODB.Connection
Dim rs As ADODB.Recordset
Dim sql As String

Set db = New ADODB.Connection
db.Provider = "SQLOLEDB"
db.ConnectionString = "server=SUNANDA;uid=sa;pwd=ranjita1;database=crm"
db.Open

Set rs = New ADODB.Recordset
sql = "Select * from AccountHead"
Set rs.ActiveConnection = db
rs.CursorLocation = adUseClient
rs.CursorType = adOpenStatic
rs.LockType = adLockOptimistic
rs.Open sql, , , , adCmdText

I have placed buttons on the form to Add, Delete, Edit and Update the records of the table. But in the click event of the Update button, the recordset is not supporting the Edit method. The only method it is showing in (VBA) the dropdown list is EditMode.
How will I then Edit the records?
Pls. help me out.
Thankyou.

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 
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 

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.