Im trying to pull all records added to my database in the last 14 days.
Im trying:
sql="SELECT * FROM stock WHERE DateLogged BETWEEN '"&DateAdd("d",-14,Date)&"' AND '"& Date &"' AND InStock = 'Yes' ORDER BY Artist, Title, Label"
ive response.write out the values of the 2 dates to check they are 2 weeks apart and in the same date format but its not working
any ideas guys
Dave

Im trying:
sql="SELECT * FROM stock WHERE DateLogged BETWEEN '"&DateAdd("d",-14,Date)&"' AND '"& Date &"' AND InStock = 'Yes' ORDER BY Artist, Title, Label"
ive response.write out the values of the 2 dates to check they are 2 weeks apart and in the same date format but its not working
any ideas guys
Dave