Today in SQL

ASH

Active member
Joined
Nov 20, 2005
Messages
30
Location
Riyadh
Programming Experience
Beginner
Hello,

I wanna to extract today by SQL . what is SQL statment for Today

like " Selcet * from orders where Date = """Today""" "


Regards,,,
 
Access should be something like this...

SELECT * FROM order
WHERE date = format(Now, "MM-dd-yy")

Now is a VB variable that holds the current system date and time. You need to format it so that drops the time off the variable. I am not sure this code will work but the concept is what you are looking for.
 
Back
Top