See also this page
http://www.rondebruin.nl/accessexcel.htm
--
Regards Ron de Bruin
http://www.rondebruin.nl
"koyannisqatsi" <(E-Mail Removed)> wrote in message
news:22DE563F-9BAF-4D54-B2AA-(E-Mail Removed)...
> 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