Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21846

search by date

$
0
0
in my project am using the DTPicker. and from my database i want to search data between two dates of DTPicker. My database date field is Dat and is in Date format. My codes are as such
.RecordSource = "select * from ExpCM WHERE Dat Between '#" & Format(DTPicker1.Value) & "# AND #" & Format(DTPicker2.Value) & "#'"
but it is not working. Any body please help. its urgent

Viewing all articles
Browse latest Browse all 21846

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>