Thank You works a treat
"ruralguy via AccessMonster.com" wrote:
> Hi Bob,
> The backslashes "\" put the next character in the string absolutely. Since
> the output of the Format() function is always a string, it returns Null when
> the value of StartDate is null.
>
> raskew wrote:
> >ruralguy,
> >
> >Would you explain the formatting portion of:
> >
> >If Weekday(StartDate, vbMonday) <= 5 And _
> > IsNull(DLookup("[Holiday]", "tblHolidays", _
> > "[HolDate] = " & Format(StartDate, "\#mm\/dd\/yyyy\#;;;\N\u\l\l"))
> >
> >Why the back-slashes and what's #;;;\N\u\l\l"))?
> >
> >Thanks and best wishes,
> >
> >Bob
> >
> >>Kevin,
> >>Here's the function I use. Maybe that will help.
> >[quoted text clipped - 44 lines]
> >>> Exit Function
> >>>End Function
>
> --
> RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
> Please post back to this forum so all may benefit.
>
> Message posted via http://www.accessmonster.com
>
>