I have a SQL database with a date that is text format. I convert to a date on query the use datediff to see if another date is greater than 90 days different. I don't get a error yet it does not remove the SQL entries that are greater than 90 days
sql = "SELECT * FROM PipelineList WHERE DateDiff('d',format(cdate([appdate]),'mm/dd/yyyy'),format(Date(),'mm/dd/yyyy')) < " & 90 & " and [status1] <> '" & "ACTIVE" & " '"
sql = "SELECT * FROM PipelineList WHERE DateDiff('d',format(cdate([appdate]),'mm/dd/yyyy'),format(Date(),'mm/dd/yyyy')) < " & 90 & " and [status1] <> '" & "ACTIVE" & " '"