I know how to connect to sql server and run a query. But for the life of me, I can not get the syntax correct for this statement. WHAT do I keep inputting incorrect?
[vba]
strsql = "Select name from names where bday between "&A1&" AND "&A2&" Order BY name ASC"
[/vba]