Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Group.
I created this query with Excel Macro, and it works. Then I put a date in a cell in Excel, and assigned the value to Variable StartDate, and it works. Now I want to put the StartDate into the WHERE instead of 2005-01-04, but that does NOT work. Any Ideas ? "SELECT DebJournal.Konto, DebJournal.Dato, DebJournal.Varebeløb" & Chr(13) & "" & _ Chr(10) & "FROM DebJournal DebJournal" & Chr(13) & "" & Chr(10) & "WHERE (DebJournal.Dato={d '2005-01-04'})" & Chr(13) & "" & Chr(10) & "ORDER BY DebJournal.Konto, DebJournal.Dato" _ ) .Refresh BackgroundQuery:=False -- Med venlig hilsen Peter Hesselager-Olesen SBS-IT Aps |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
MS Query and date format | Excel Discussion (Misc queries) | |||
MS Query Date Format | Excel Discussion (Misc queries) | |||
Excel Query Wizard Date Format | Excel Discussion (Misc queries) | |||
Excel 2000 date format cannot be set to Australian date format | Excel Discussion (Misc queries) | |||
Date format - ADO query Access to Excel | Excel Programming |