title: select date from DateTimePicker - VBA
body: <p>I have a problem with selection date using <code>DateTimePicker</code>. </p>
  
  <p>I would like to have a range of days which I set using two DTPs - from YY-MM-DD to YY-MM-DD. My code is like that:</p>
  
  <pre><code>SELECT * FROM Table WHERE (Date LIKE '" + DateTimePicker1.Value + "' OR Date LIKE '" + DateTimePicker2.Value + "')"
  </code></pre>
  
  <p>...but it gives me only dates from DTP1 and from DTP2, of course. I'm working on Access database (.mdb) and Visual Basic 2010. </p>
  
  <p>I will be grateful for your help.</p>