date in a sql statement

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the criteria to put a data in a query. I what to have the user
select the correct date. I've tried

#[date]#
[#date#]

Please help me out.

thanks
 
Not sure what you mean. To prompt for the date, you'd do...

SELECT Employees.HireDate
FROM Employees
WHERE (((Employees.HireDate)=[enter date]));


To specify a date, you'd do...

SELECT Employees.HireDate
FROM Employees
WHERE (((Employees.HireDate)=#12/31/1999#));
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top