I am using the following code to download data from SQL server.
When I run this The line rst.Open StrSql, ConnStr is highlighted and the SQL server error message "Invalid column name StartDate" is shown.
StartDate and LastDate are parameter variables used in the last part of StrSQL. I have replaced these with several other names but all give the same error.
This is the first time I have queried an SQL server and the first time I have used an ADODB connection so I am stuck.
Help please
***NB The last line of StrSQL has a> and a< replaced by "2" and "3". This is because > and < are causing a Forum FireWall to activate. (See recent post from me and advice given)
John
Bookmarks