Dim conn,rst,Kayitlar
On Error Resume Next
Set conn = CreateObject("ADODB.Connection")
Set rst = CreateObject("ADODB.Recordset")
conn.Open "Provider=MSDASQL;DSN=Deneme"
If Err.Number <> 0 Then
ShowSystemAlarm "Error #" & Err.Number & " " & Err.Description
Err.Clear
Set conn = Nothing
Exit Sub
End If
Kayitlar = "SELECT * FROM" & "Kayitlar"
Set rst = conn.Execute(Kayitlar)
Kayitlar = "SELECT * FROM " & "Kayitlar" & " ORDER By "
Set rst = conn.Execute(Kayitlar)
If Err.Number <> 0 Then
ShowSystemAlarm "Error #" & Err.Number & " " & Err.Description
Err.Clear
conn.close
Set conn = Nothing
Set rst = Nothing
Exit Sub
End If
If SmartTags("Next") = True Then
rst.MoveNext
Else
End If
If Not (rst.EOF And rst.BOF) Then
rst.MoveFirst
SmartTags("DB1") = rst.Fields(0).value
rst.Close
Else
End If
conn.close
Set rst = Nothing
Set conn = Nothing