DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Deneyiniz...
sira = baglantiadi.Execute("select top 1 ID from TabloAdi order by ID desc").fields(0).Value
TextBox1.value = sira + 1
Private Sub CommandButton1_Click()
Call baglanti
sira = baglan.Execute("select top 1 ID from GİRİŞ order by ID desc").fields(0).Value
TextBox6.Value = sira + 1
End Sub
Dim objAccess As Object
Private baglan As Object, rs As Object
Sub baglanti()
Set baglan = CreateObject("adodb.connection")
baglan.Open "provider=microsoft.jet.oledb.4.0;data source=" & ThisWorkbook.Path & "\malzeme.mdb"
End Sub
Public baglan As Object, rs As Object
Public dosya As String
Sub baglanti()
Set baglan = CreateObject("adodb.connection")
Set rs = CreateObject("adodb.recordset")
dosya = ThisWorkbook.Path & "\malzeme.mdb"
baglan.Open "provider=microsoft.jet.oledb.4.0;data source=" & dosya
rs.Open "select * from bolum", baglan, 1, 3
End Sub
Sub CommandButton1_Click()
Call baglanti
sira = baglan.Execute("select top 1 ID from bolum order by ID desc").fields(0).Value
TextBox6.Value = sira + 1
dosya = vbNullString: Set rs = Nothing: Set baglan = Nothing
End Sub
Sub CommandButton1_Click()
Dim baglan As Object, rs As Object
Dim dosya As String
Set baglan = CreateObject("adodb.connection")
Set rs = CreateObject("adodb.recordset")
dosya = ThisWorkbook.Path & "\malzeme.mdb"
baglan.Open "provider=microsoft.jet.oledb.4.0;data source=" & dosya
rs.Open "select * from bolum", baglan, 1, 3
sira = baglan.Execute("select top 1 ID from bolum order by ID desc").fields(0).Value
TextBox6.Value = sira + 1
dosya = vbNullString: Set rs = Nothing: Set baglan = Nothing
End Sub