Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Delete current records which is displaying in the objects  (Read 2766 times)

0 Members and 1 Guest are viewing this topic.

talorababu

    Topic Starter


    Rookie

    Delete current records which is displaying in the objects
    « on: May 24, 2009, 07:09:51 AM »
    Dear Sir

    I want to records which is displaying in different objects. I have used below code, but doesn't work properly.

    Private Sub cmddelete_Click()
    Dim i As Integer
    i = MsgBox("Really want to delete?", vbYesNo, "Delete Option")
    If i = vbOK Then
    rst.Delete adAffectCurrent
    End If
    End Sub

    Please come back at your earliest.

    Regards
    talorababu