Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 18th, 2006, 05:43 PM
Registered User
 
Join Date: Jun 2003
Location: , , USA.
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")
Reply With Quote
  #2 (permalink)  
Old December 19th, 2006, 09:22 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:12 PM.


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