|
i want to pull all orders from the database that is less than the Date the Order Entry entered.
DateSubmit -- is the date in the database as a Date field
Date -- is the date enter by the Order entry
rs.Open "Select * from tblTestOrder, tblCustomers where CustomerID = CustID AND DateSubmit = '" &Date& "'", conn
right now, it pulls all order with or without "DateSubmit= '"&Date& "'".
When i take out the quotation around DATE; i got an 0x80040E10 error.
please help
|