LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default DateTime Data from Access to Excel using ADO

Hi,
I have got a Access Database with a field called "Date" (format: Short
Date). In this field all dates from 31st October to 19th November 2006 are
stored.
I am trying to load data into Excel using a SELECT statement in an ADO
environment but it does not work:

rs = recordset that I have created....
cn = "...connection..."
StartDate = 31.10.2006
EndDate = 02.11.2006
rs.Open "SELECT * FROM Results WHERE [Date] = StartDate AND
[Date]<=EndDate, cn, , , adCmdText


Thanks for your help!
Dominik
 
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
Importing data from Access to Excel, but I need to vary the table from Access Liz L. Excel Programming 3 June 6th 06 02:12 AM
Formatting datetime problems importing data from mysql db PEA Excel Discussion (Misc queries) 2 February 23rd 06 11:04 PM
datetime format issues when linking access to excel Season Excel Discussion (Misc queries) 0 December 6th 05 04:52 PM
Access data -work in Excel- save in Access s_u_resh Excel Programming 1 October 25th 04 12:52 PM


All times are GMT +1. The time now is 11:38 AM.

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

About Us

"It's about Microsoft Excel"