Re: Format Bug When Date is > '1/1/2007'?



Can you show us some real VB Steve. The Format() call you describe is not
proper VB and so we can't see what you're trying to do

if Format() is called with a plain text argument, and no parameters, then
I'm not sure what you are expecting. I believe VB is trying to guess whether
the text is a valid date or just some other text, e.g.

Format("2006-3-2")

is interpreting the string as a yyyy-mm-dd type of date, whereas with

Format("2006-3-92")

it decides it's not a date at all.

What would you expect your call to generate?

Tony Proctor

<stevekgoodwin@xxxxxxxxx> wrote in message
news:1167877736.679515.51030@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Has anyone encountered the Format( aString ) function behaving
differently asof 1/1/2007? I'm seeing this:

Format('070102-1') results in '1/01/4566'

and

Format('061227-1') results in '061227-1'

(as you can tell I don't usually delve into VB). This is stuffing up
one of the feeds we've got that have been working since 2003.

Anyone got any information on this? (The solution is easy, remove the
Format() function, but I'm curious as to what the cause is).



.



Relevant Pages

  • Re: Formula ?
    ... "RunNumber" with the actual count on the Record Navigation bar, ... "Steve Schapel" wrote: ... Set the Default Value property of the RunDate control on the form to... ... Set the Format property of the RunNumber control on the form to... ...
    (microsoft.public.access.gettingstarted)
  • Re: Unable to print Emails in Outlook Express
    ... I do not have regsvr on my system, ... a window opens for a printer selection and a print ... If you select format memo (to select the printing of the ... "Steve Cochran" schreef: ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Converting date entry from mm/dd to mm/yy
    ... I actually only saw the first response to this whole thread before I left ... Thank you Steve and Crystal. ... Access stores date/times in a numeric format where the ... the time is a fraction of the day ...
    (microsoft.public.access.formscoding)
  • Re: Installed Hard Disk In Dell Vista Machine Today
    ... Microsoft® Windows® XP Professional Resource Kit, ... Professional Setup. ... Instead I suspect Steve will focus on the idea ... superiority of the full format from a technicalperspective. ...
    (comp.sys.mac.advocacy)
  • Re: 501 Error Message
    ... Now you can format fonts. ... "Steve Cochran" wrote in message ... > and click on the Font, I still have the 501 error message. ... > the Size and 16 custom color boxes are available when I write an> e-mail. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)