Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Delete Button

$
0
0
Hi guys, I have an Add button using this code:
Private Sub btnAdd_Click()
Dim dbFilmi As dao.Database
Dim rstInfoTBL As dao.Recordset

Set dbFilmi = CurrentDb
Set rstInfoTBL = dbFilmi.OpenRecordset("InfoTBL")

rstInfoTBL.AddNew
rstInfoTBL("ID").Value = Me.txtID
rstInfoTBL("Name").Value = Me.txtName
rstInfoTBL("DOB").Value = Me.txtDateFrom
rstInfoTBL.Update
rstInfoTBL.Close

End Sub

And now i'm trying to create a delete button that deletes the info i type in the fields some ideas ?

Viewing all articles
Browse latest Browse all 13329

Trending Articles