Hi all :)
I am using this code to connect to SQL server to fetch some data:
Sub DataLoop()
Dim Conn As New ADODB.Connection
Dim recset As New ADODB.Recordset
Dim sqlQry As String, sConnect As String
FrDt = Range("B1").Value
ToDt = Range("B2").Value
sqlQry = "SELECT COUNT(VoNo) from...