Access SQL statement to query the current day -


i'm working access database school , i'm trying figure out how pull of transactions current day without having manually change date range. current query is:

select count (custid) [number of transactions] [transaction] date=_____ 

so there way have access pull date machine , use that?

thanks in advance!

the getdate() equivalent in access now().

if format date column short date, format short date, equivalent.

    select count (custid) [number of transactions]     [transaction]     format (date, "short date") = format(now(), "short date") 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -