>>nope.can you help me solve my problem??please...
>>hey there FirstPerson.I m new with c++ so i think i m zero with it.can you help me
>>with my problem??
>>As you know firstPerson i m new with c++.I m think i m a litle bit blur what just you
>>tech me..Sorry.Could you solve my c++ question entirely??with example also??
All these statements of yours shows that the only thing you are interested is in getting the pre-cooked solution and run with your feet off.
Showing yourself a big looser ( ``I don't know C++ thus help me" ) doesn't help you. It would have been so much better if you would have read your textbook and at least given a try to the problem.
Dim Adapter As New OleDbDataAdapter
Dim Command As New OleDbCommand
Dim xFrom As String = dtpFrom.Value.ToString.Substring(0, dtpFrom.Value.ToString.IndexOf(" "))
Dim xTo As String = dtpTo.Value.ToString.Substring(0, dtpTo.Value.ToString.IndexOf(" "))
sqlQuery = MainQuery ...