Show tomorrow's date in header of Vb Report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manjeetgrang
    New Member
    • Feb 2008
    • 36

    Show tomorrow's date in header of Vb Report

    how to write next day's date(one after current date) in page header of a VB Report
  • manjeetgrang
    New Member
    • Feb 2008
    • 36

    #2
    Show tomorrow's date in header of Vb Report

    how i can write tomarrow' date( 1 day after current date) in Page header of VB report.any clue please

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      Question Moved To Vb Forum.

      Comment

      • 9815402440
        New Member
        • Oct 2007
        • 180

        #4
        hi

        dataReport1.sec tions("SecName" ).controls("Lab elName").Captio n=Date+1

        regards
        manpreet singh dhillon hoshiarpur

        Comment

        • jimmylee
          New Member
          • Feb 2008
          • 17

          #5
          Code:
          vb
          Date = Date + 1
          Text1.Text = WeekdayName(Weekday(Date))

          Comment

          • daniel aristidou
            Contributor
            • Aug 2007
            • 494

            #6
            Originally posted by manjeetgrang
            how i can write tomarrow' date( 1 day after current date) in Page header of VB report.any clue please
            Try using the ADDDATE Function

            Comment

            • jamesd0142
              Contributor
              • Sep 2007
              • 471

              #7
              vb.net:

              [code=vbnet]
              Dim date1 As Date
              date1 = System.DateTime .Today
              date1 = date1.AddDays(1 )
              [/code]

              Comment

              • lotus18
                Contributor
                • Nov 2007
                • 865

                #8
                Originally posted by daniel aristidou
                Try using the ADDDATE Function
                I think it should be DateAdd function

                Comment

                • manjeetgrang
                  New Member
                  • Feb 2008
                  • 36

                  #9
                  Originally posted by 9815402440
                  hi

                  dataReport1.sec tions("SecName" ).controls("Lab elName").Captio n=Date+1

                  regards
                  manpreet singh dhillon hoshiarpur
                  Hi
                  In report's Pageheader section you can't access any control on runtime/design (any event). Thanks for your help

                  Comment

                  • Killer42
                    Recognized Expert Expert
                    • Oct 2006
                    • 8429

                    #10
                    Since this question has been posted (and answered) twice, I've now merged the two threads.

                    Comment

                    • QVeen72
                      Recognized Expert Top Contributor
                      • Oct 2006
                      • 1445

                      #11
                      Hi,

                      You have to do it at Run-Time..
                      Place a Label Control on the Report-Header Section and Rename it as MyLabel....
                      and use Manpreet's code just before showing the Report..

                      [code=vb]
                      DataReport1.Sec tions(1).contro ls("MyLabel").C aption=Format(( Date+1),"dd-mm-yyyy")
                      [/code]

                      Regards
                      Veena

                      Comment

                      Working...