Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Very simple question

Status
Not open for further replies.

jrelis

IS-IT--Management
Jun 9, 2007
5
US
Can someone tell me the syntax for the current date in MS query?
Thanks
 
I need to get the current date , date () in MS query doesn't do this
 
What is the database type you attempt to query ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
The DB is an AS400 and Date() asks for the parameters so Date(1) will give me 0000-00-01 result.
 
Date(now()) seemed to do the trick , thanks
 


Well, don't you think that AS400 is VITAL to the question???

If it were Oracle or DB2 it would be SYSDATE and not Date().

Try SYSDATE.

After all, this is an ACCESS formum, not AS400.

Skip,

[glasses] [red][/red]
[tongue]
 
Furthermore, AS400 is NOT (AFAIK) a DBMS ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top