chkBox.Value = 0 (не отмечено)
cn - соединение с базой данных (ADODB.connection)
rcd - рекордсет (ADODB.Recordset)
sql = ""
sql = "SELECT * FROM dbTableName"
rcd.Open sql, cn, adOpenStatic
rcd.MoveFirst
While Not rcd.EOF
    MsgBox rcd("TableFieldValue")
    rcd.MoveNext
Wend
If rcd.State = adStateOpen Then
    rcd.Close
End If
Exit Function
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.OpenTextFile("c:\testfile.txt", ForAppending, TristateFalse)
f.Write "Hello world!"
f.Close
Dim fso As New FileSystemObject
Dim fil As File
Set fil = fso.CreateTextFile("c:\testfile.txt", True)
fil.Close
ClipBoard.SetText "Какое-нибудь сообщение"