Jun 9, 2007 #1 jrelis IS-IT--Management Jun 9, 2007 5 US Can someone tell me the syntax for the current date in MS query? Thanks
Jun 9, 2007 #2 S SkipVought Programmer Dec 4, 2001 47,492 US Hi, Date() Skip, [red][/red] Upvote 0 Downvote
Jun 9, 2007 Thread starter #3 jrelis IS-IT--Management Jun 9, 2007 5 US I need to get the current date , date () in MS query doesn't do this Upvote 0 Downvote
Jun 9, 2007 #4 PHV MIS Nov 8, 2002 53,708 FR What is the database type you attempt to query ? Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
Jun 9, 2007 #5 S SkipVought Programmer Dec 4, 2001 47,492 US It certainly is! What does Date() return for you? Skip, [red][/red] Upvote 0 Downvote
Jun 9, 2007 Thread starter #6 jrelis IS-IT--Management Jun 9, 2007 5 US The DB is an AS400 and Date() asks for the parameters so Date(1) will give me 0000-00-01 result. Upvote 0 Downvote
Jun 9, 2007 Thread starter #7 jrelis IS-IT--Management Jun 9, 2007 5 US Date(now()) seemed to do the trick , thanks Upvote 0 Downvote
Jun 9, 2007 #8 S SkipVought Programmer Dec 4, 2001 47,492 US 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, [red][/red] Upvote 0 Downvote
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, [red][/red]
Jun 9, 2007 Thread starter #9 jrelis IS-IT--Management Jun 9, 2007 5 US Thanks for all the help Upvote 0 Downvote
Jun 9, 2007 #10 PHV MIS Nov 8, 2002 53,708 FR Furthermore, AS400 is NOT (AFAIK) a DBMS ... Upvote 0 Downvote