Friends here i am posting some function thats usefull for visual basic programmers. If you have some please Post.
Code:
'Get A Value From Database Public Function GetField(ByRef conn As ADODB.Connection, ByVal StrSql As String) As Variant On Error GoTo ErrHr With conn.Execute(StrSql) If Not .EOF Then GetField = .Fields(0) & "" End If .Close End With Exit Function Set conn = Nothing ErrHr: MsgBox Err.Description End Function
Comment