|
-
February 14th, 2000, 09:43 AM
#1
Dates within SQL being a pain!
Hi,
I am using VB6 with a Microsoft Access ODBC database back end.
I have a date within a particular table, formatted as dd/mm/yyyy (UK Format)
When using a SQL query I do the following
SELECT * FROM SOMETABLE WHERE MYDATE = 14/02/2000
The database returns zero records even though I know that records are present which meet this criteria. I have tried different formats but with no luck 
Can anyone help?
TIA
Ian
-
February 14th, 2000, 10:27 AM
#2
Re: Dates within SQL being a pain!
Have you tried this ?
SELECT * FROM SOMETABLE WHERE MYDATE = 14022000
Sometimes data is written without separatros.
Something over there is coding....
... and you don't know!
-
February 14th, 2000, 11:10 AM
#3
Re: Dates within SQL being a pain!
Its ok, after an hour of trying I've worked it out!!!
used # before and after my date criteria
Ian
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|