
March 18th, 2003, 09:07 AM
|
|
Junior Member
|
|
Join Date: Mar 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Comparing dates
I'm currently running access 2000, and writing the interface for it in VBA. I'm trying to write an SQL function to compare whether the date in a table is less than or greater than the date inputed by the user. I'm using a select statement that looks a bit like:
"Select * from tblStudent where bdate < " & Me.txtBdate.value & " and where bdate >" & Me.txtBdate.value & ";"
It returns nothing if I put the >, but not the <. Is it possible to compare dates like this in excel, or should I be doing something else?
Thanks
Eric
|