- Katılım
- 14 Ağustos 2011
- Mesajlar
- 212
- Excel Vers. ve Dili
- 2019 TR
- Altın Üyelik Bitiş Tarihi
- 18-07-2024
Kod:
If MsgBox("'" & ListBox2.Text & "' adlı konuya ait bilgi ve kodlar silinecektir, emin misiniz?", vbYesNo, "Arslanbey") = vbYes Then
If OptionButton1.Value = True Then tabloadi = "tablo1"
If OptionButton2.Value = True Then tabloadi = "tablo2"
If OptionButton3.Value = True Then tabloadi = "tablo3"
If OptionButton4.Value = True Then tabloadi = "tablo4"
If OptionButton5.Value = True Then tabloadi = "tablo5"
Set rs = CreateObject("ADODB.recordset")
Tanimlanan = "SELECT * FROM " & tabloadi
rs.Open Tanimlanan, AdoCN, 1, 3
rs.Delete
ListBox2.RemoveItem (ListBox2.ListIndex)
Set rs = Nothing
End If End sub
Son düzenleme: