I have a sub that generates different SQL string based on certain criteria but the sub the does the select has
Dim myDate AsString
DateTime.DateFormat = "yyyy-mm-dd"
myDate = DateTime.date(DateTime.Now)
this is used in the WHERE clause like so
WHERE ((EventMonth ='" & tempMonth & "') AND ('EventDate' >='" & myDate & "'))
The EventDate is a string which holds that date parsed fro man XML file in SQLLite db as, for example, 2014-01-23
In theory I am trying to get the SQL statement to agree that 2014-01-23 is not greater than 2014-03-21. It should evaluate to False but SQL evaluates it True.