Re: Dates and the 'Between' predicate

From: Marshall Barton (marshbarton_at_wowway.com)
Date: 03/17/05


Date: Thu, 17 Mar 2005 12:10:49 -0600

Pete wrote:
>However, I am curious as to how Marshall's solution works (with all the
>Hieroglyphics) ;-)

All the format function does is explicitly convert the date
value to a standard USA date literal. The \ is the Format
function's "escape" character, which means the next
character is to be used as is. The #'s identify a date
literal value and the / characters are "escaped" as literals
because your Windows locale settings may specify that / be
changed to some other non-USA date separator. If you try
the Format function, you'll see that the result is an
unambiguous USA date literal such as #3/17/2005#.

Criptic it is, but once you understand the various
formatting code characters (see Format Property in Help),
fairly easy to decipher.

-- 
Marsh
MVP [MS Access]


Relevant Pages

  • Re: XML Not good for Big Files (vs Flat Files)
    ... One simply requires that the text format is self-delimiting and that /any/ text ... a C-like escape mechanism could be parameterised on ... the End character ...
    (comp.lang.java.programmer)
  • Prevent Blank Records being written. Need Help.
    ... Secondary record format is as follows: ... character text field, ... no input mask requirement ... allow zero length = yes. ...
    (microsoft.public.access.forms)
  • RE: Prevent Blank Records being written. Need Help.
    ... Secondary record format is as follows: ... > no input mask requirement ... > 30 character text field, ... > allow zero length = yes. ...
    (microsoft.public.access.forms)
  • Re: newbie question for reading input file
    ... Declarations are *VERY* important. ... feature is using a real variable to store character values. ... You have to use an explicit format with an appropriate "A" edit ... unused data edit descriptors at the end of the format are ignored, ...
    (comp.lang.fortran)
  • Re: txt-file is in ANSI format or OEM Character format.
    ... Try 2 and 3 above changing formating to a different Font. ... This file I open in UltraEdit and change ANSI to OEM and close ... The older printers have a smaller character set it ... Character format. ...
    (microsoft.public.excel.programming)