Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 18th, 2006, 05:43 PM
Registered User
 
Join Date: Jun 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Listing dates ascending

I need to have the results from Date5 listed in ascending order. How do I have it do that?

Here is the code:
im dow As String ' Day Of Week
    Dim Offset As Integer ' Number of days offset

    If IsNull(Me![Due Date]) Then GoTo Exit_This
    dow = Me![Due Date]
' ------------------------------------------------------------
' First calculate the DUE DATE by ensuring it is not a weekend
' ------------------------------------------------------------
    If Weekday(dow) = 7 Then dow = DateAdd("D", 2, dow) ' Saturday add 2
    If Weekday(dow) = 1 Then dow = DateAdd("D", 1, dow) ' Sunday add 1
    Me![Date5] = Format(dow, "dd-mmm-yyyy")
 
Old December 19th, 2006, 09:22 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hello...

and date5 is what???

your post didn't explain what are you trying to do and what you have...

HTH

Gonzalo





Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing 8-10 and Listing 8-16. Asp.Net BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 February 6th, 2008 01:11 PM
how to sort an array ascending, help beccali Visual C++ 1 March 26th, 2007 05:19 PM
number not finding in ascending order mankoti_mankoti2000 Access 1 January 19th, 2007 01:07 AM
parseInt - sort ascending crmpicco Javascript How-To 3 July 5th, 2005 09:13 AM
Sort ascending and descending bertcox XSLT 1 May 17th, 2004 05:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.