Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Judda
Starting Member
7 Posts |
Posted - 2001-11-05 : 16:25:18
|
Hi there,I have an Access 2000 DB that hold dates as number like this:200101012001010220010103200101042001010520010106etcI want to select a range of these 'dates' depending upon wether or not they are greater or less than my search 'date'.If I do this:strSQL = "SELECT * FROM [calendar] WHERE [cdate] >= '" & targetdate & "' AND [cdate] <= '" & targetdate & "'"My query finds nothing !If I swap the AND for an OR I get some results but not the correct number (as I would expect).Does anyone have any ideas on what I am doing wrong here ?The app I am doing is in VB6 (SP5)Many thanks for lookingJudda |
|
|
|
|