Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,379 of 10,840    |
|    Max Healey to All    |
|    Re: Date Error    |
|    02 Apr 05 21:50:44    |
      From: bill@busdriver.com              Should be              cmdQuery.CommandText = "SELECT * from tblTimings WHERE       fldDate = #" & dtpDate.Value & "#"              That is if you are in the USA Europe and Australia will need to do this to       ensure consistent results              cmdQuery.CommandText = "SELECT * from tblTimings WHERE       fldDate = #" &dtpDate.month & "/" & dtpDate.day & "/" dtpDate.year & "#"              SQL Process dates in US Date Format but will not throw an error if you feed       it dd/mm/yy instead it try's to fix it for you so it 1/4/05 will give be       processed as 4 January where as 13/4/05 will be processed as 13 April go       figure !                                    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca