The # marks are date format delimiters that tell Jet to interpret the data as dates
One warning though.
Jet always interprets dates in dd/mm/yy format in the American order ( mm/dd/yy ) regardless of the local settings on your machine so DateA & DateB should be strings containing the month in text to prevent errors.
We have a DB that uses just this function. The dates are held on the table in the format dd/mm/yyyy, and entering the search dates in this format workes just fine. The query we use also asks for the date parameters to be put in at run time. the criteria for this is:
Between [ 'Please enter from date:'] And [ 'Please Enter to date:']
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.