Posted on: 4/27/2015 2:51:58 AM | Views : 670

I am having trouble trying to filter my sql database using the query string against a date column in my database.  I set a date variable = "dd/mm/yyy" format but when I apply that in the sql query as: StartPeriod = CDate("01/" & Today.Month.ToString & "/" & Today.Year.ToString) EndPeriod = CDate(Today.Day.ToString & "/" & Today.Month.ToString & "/" & Today.Year.ToString) At this point StartPeriod = #04/01/2015#  and EndPeriod is #04/27/2015# sql = "SELECT * FROM Transactions WHERE  ((PaidOutDate IS Null) OR (TransDate >= '" & StartPeriod & "' AND TransDate <= '" & EndPeriod & "') When I execute the Sql command I get this error: "Conversion failed when converting date and/or time from character string" My Current Culture is {en-AU} Any h ...

Go to the complete details ...