Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Date comparison in VBA (MS Acess)


Hi,

I am trying to retreive some records after a certain date in exce
using VBA. The database is MS access. I am using the following query
it gives an error.
Select * from Datatable
where ModDate format('01/21/2006', '\#mm/dd/yyyy\#').

Could somebody enlighten me how to use the date field in wher clause.

Thanks in advance for your help.

regards
Anan

--
anandmr6
-----------------------------------------------------------------------
anandmr65's Profile: http://www.excelforum.com/member.php...fo&userid=3072
View this thread: http://www.excelforum.com/showthread.php?threadid=53915

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Date comparison in VBA (MS Acess)

Try this,
Select * from Datatable
where ModDate #01/21/2006#

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF(AND with date comparison PSU35 Excel Worksheet Functions 4 October 27th 09 03:14 PM
Date comparison adimar Excel Worksheet Functions 14 February 3rd 08 06:44 PM
Date comparison TomD Excel Discussion (Misc queries) 4 February 20th 07 10:37 PM
date comparison help CathyZ Excel Discussion (Misc queries) 5 May 4th 06 11:53 AM
Date comparison Jonibenj Excel Discussion (Misc queries) 6 October 23rd 05 08:34 PM


All times are GMT +1. The time now is 09:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"