Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dates in the Where Clause of a SQL statement

Status
Not open for further replies.

BKtechie

MIS
Mar 27, 2002
132
US
Hello all-
I have a sql statement that accesses a dBase V directory. All of my sql statements have worked thus far, but when I attempt to retrieve date data, it comes up blank. This is my Where clause:
Where CZVOID.Date >= #&quot; & DTPicker2.Value & &quot;# And CZVOID.Date <= #&quot; & DTPicker1.Value & &quot;#

DTpicker1 and 2 allow the user to pick a date range to search. I have grabbed the sql statement before it makes the connection to test it in Access (with linked tables) and it comes up fine. Does ODBC handle the dates differently than Access? Thanks in Advance.

BKtechie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top