Rob Meade wrote:
> "Bob Barrows" wrote ...
>
>> 
>> It depends on what his database is ...
>
> I know some of the Weekday stuff I've done in the code above can be
> done in the SQL statement in SQL Server, any better suggestions for
> the ASP version which I did above?
>
> I dont often put forward a code block for people in the group as I'm
> often concerned I'll do it in about 100 lines when 10 would have
> worked 
>
> Rob
Are you sure you want me to answer that?
dim dToday, dWkStartDate, dWkEndDate
dToday = Date()
'assuming Sunday is first day of week:
dWkStartDate = dToday
Do until weekday(dWkStartDate) = vbSunday
dWkStartDate = DateAdd("d",-1,dWkStartDate)
Loop
dWkEndDate = DateAdd("d",6,dWkStartDate)
Bob Barrows
MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"