Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Interface and Graphics

Post new topic   Reply to topic
edit button
View previous topic :: View next topic  
Author Message
ellrisa
Newbie


Joined: 12 Apr 2006
Posts: 3

PostPosted: Apr 12th, 2006 01:54 AM    Post subject: edit button Reply with quote

- Add button -
Private Sub cmdAdd_Click()
adoStudentInfo.Recordset.AddNew
End Sub

- Delete button -
confirm = MsgBox("Are you sure want to delete this record?", vbYesNo + vbQuestion, "Attention")
If confirm = vbYes Then
MsgBox ("Record are delete!"), vbOKCancel + vbInformation, "Attention"
adoStudentInfo.Recordset.Delete
Else
If confirm = vbNo Then
MsgBox ("Record are not delete!"), vbOKOnly + vbExclamation, "Attention"
adoStudentInfo.Recordset.MoveFirst
End If
End If

- Save button -
confirm = MsgBox("Are you sure want to save this record?", vbYesNo + vbQuestion, "Attention")
If confirm = vbYes Then
MsgBox ("Record are saved!"), vbOKOnly + vbExclamation, "Attention"
Else
If confirm = vbNo Then
MsgBox ("Record are not save!"), vbOKOnly + vbExclamation, "Attention"
adoStudentInfo.Recordset.CancelUpdate
End If
End If

currently i develop a system which can add, delete and save record, and this button was working properly. Now im trying to insert edit button which will able the existing record to be edited or update. Can anyone plz help me with this "edit button"? Thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Interface and Graphics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic