ok... you are right that it`s hard to read my code. I just paste the whole .asp file for better inspection.
My problem is in those few lines
Code:
Set oRecordset = oConnection.Execute("SELECT * " & _ "FROM emvolio " & _ "WHERE next_date between '" & sSearch1 & "' and '" & sSearch2 "'")
so... I have a form with 2 "date fields" (ssearch1, ssearch2) where I put 2 dates (e.g 2/2/2010, 3/3/2012).
On my access db I have to use the "text type" for the "next_date" field because when I use "date type" I get an error for my .asp page.
I`ve checked the records in my db and they are fine (e.g 12/2/2011....).
So if i make a query about "next_date>=1/1/2010 and < 3/1/2010" among the results I`ll get is also the record "12/2/2011" because from what I can get it only reads the first number of the whole date.
I will try the "#" and I`ll be back to post the results. thank you for your reply!