TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gizmo
NA
4
9.3k
Query returns 0 rows..
Apr 6 2006 12:32 AM
Hello My problem is pretty straightforward, the following query returns nothing: oleDbCommand2.CommandText="SELECT Orders.OrderID FROM Orders WHERE Orders.CustomerID='"+cusID+"' AND (Orders.OrderDate BETWEEN "+startDate+" AND "+endDate+")"; However, when I remove the "AND Orders.OrderDate BETWEEN..." part, my query works fine. Any ideas on what could be the problem? And yes, I've checked that the database does contain rows for those dates. Thanks!
Reply
Answers (
1
)
ADO.NET in c#2005
searching index server with C# problem