Can someone tell me how to properly construct a date compare using the Progress 10.2A driver in VB .Net 2010 program. The code below does not cause an error but the result set is not filtered by the date criteria. The field is a DATE type on the Progress database, I've tried all sorts of date formats, I hope someone here can assist. Thanks
select AdCharge.AdNumber, AdCharge.CustomerID, AdSchedule.BillDate, AdSchedule.PublicationID, AdSchedule.Linage, AdOrder.AdLine[1]
from PUB.AdOrder,PUB.AdSchedule,PUB.AdCharge
where AdSchedule.AdNumber = AdOrder.AdNumber
and AdCharge.AdNumber = AdOrder.AdNumber
and AdSchedule.PublishDate >= TO_DATE('05/01/2011') and AdSchedule.PublishDate <= TO_DATE('05/03/2011')
select AdCharge.AdNumber, AdCharge.CustomerID, AdSchedule.BillDate, AdSchedule.PublicationID, AdSchedule.Linage, AdOrder.AdLine[1]
from PUB.AdOrder,PUB.AdSchedule,PUB.AdCharge
where AdSchedule.AdNumber = AdOrder.AdNumber
and AdCharge.AdNumber = AdOrder.AdNumber
and AdSchedule.PublishDate >= TO_DATE('05/01/2011') and AdSchedule.PublishDate <= TO_DATE('05/03/2011')