Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET MS-Access
hello everyone,
 
i face a problem to get current date from ms access table.i use date(),now.date()
 
any many more funcn.but i m not getting current date ..in sql we use getdate(),but what is the syntax for ms access..
 

thanks
Posted 21-May-13 3:02am
ErBhati2.8K
Edited 21-May-13 3:34am
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

In MSAccess you can use Now(). Date() provides the date and Time() provides the time
  Permalink  
v2
Comments
Maciej Los at 21-May-13 8:12am
   
Yes!
+5
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Now() provides date and time
Date() provides the date and
Time() provides the time
in ms access...
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Hi,
 
Check This Link
 

http://www.fontstuff.com/access/acctut06.htm
 
This may be Case sensitive problem.
 
Try this,
 
select * from tblDemo where Bdate = Date()
 

Thanks
Siva Rm K
  Permalink  
Comments
ErBhati at 21-May-13 8:33am
   
i use the query select date()..it gives the error
rmksiva at 21-May-13 23:58pm
   
Can you please show the error or show your full query ?!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 381
1 Sergey Alexandrovich Kryukov 245
2 Marcin Kozub 225
3 Praneet Nadkar 217
4 /\jmot 189
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,614
3 Maciej Los 4,989
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 21 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100