|
-
December 14th, 2012, 04:41 PM
#4
Re: how to read data from two date time?
 Originally Posted by DataMiser
If the fields are date type in the mdb then you must use # signs around them in MS Access
Code:
SQL = "select R1, R2 from " & bname & " where DT1 between #" & CStr(DateBegin) & "# and #" & CStr(DateOver) & "# order by DT1 asc"
Thank you. I got it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|