Problem is based on C#, ADO.NET, using Access Database.
I am trying to filter the results from the database and display them in DataGridView on click of 'button1' button. But the datagridview shows empty results when there are actually 3 records with matching conditions. According to what I know, the SQL statement is right, I am not able to find what mistake I am making.
I have attached the whole project and database, problem is in dispAndEdit form.
guru_iyer
0
Light Poster
Recommended Answers
Jump to Posti have checked your code but it is giving datatype mismatch exception. Anyway in my opinion instead of using
"select * from " + dlrName + " where date1 between @date1 and @date2"
you may use
"select * from " + dlrName + " …
Jump to Postok so you are also having the same exception can you give me some time i am checking it again.. have you checked the details of OLEDBADAPTOR class? because exception is coming there.. Anyway Let me check :)
Jump to Postyes you are right so your problem is solved?
All 10 Replies
abelLazm
183
Postaholic
guru_iyer
0
Light Poster
abelLazm
183
Postaholic
guru_iyer
0
Light Poster
guru_iyer
0
Light Poster
abelLazm
183
Postaholic
guru_iyer
0
Light Poster
guru_iyer
0
Light Poster
abelLazm
183
Postaholic
guru_iyer
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.