Date variable in a query ?

  • Thread starter Thread starter Rebecca
  • Start date Start date
R

Rebecca

How do I put a date variable (to be entered by the user)
in a query (a SQL query)?

e.g.

SELECT .......
Where table_date >= from-date and
table_date <= to_date;
 
SELECT ...........
FROM YourTable
WHERE Table_Date >= [Enter Beginning Date] AND Table_Date <= [Enter Ending
Date];
 
Back
Top