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
.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