Results 1 to 10 of 10

Thread: [RESOLVED] data report

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Resolved [RESOLVED] data report

    hi!
    how could i show my date only once in data report?
    i mean place rpttextbox in header?

    i attached picture.
    tnx
    Attached Images Attached Images  
    *****************
    VB6,PHP,VS 2005

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: data report

    What are you doing now that isn't working?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: data report

    i can't insert my date (box with red color) in heading
    if my rpttext put in the detail section it will show many dates
    if i try rpttext in the heading it is forbidden...
    how?
    *****************
    VB6,PHP,VS 2005

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: data report

    Code:
      DE1.rsCommand3.Open "SELECT * FROM tbl", con, adOpenDynamic, adLockOptimistic
         If DE1.rsCommand3.EOF <> True Then
         Me.MousePointer = vbHourglass
         
         Set rpt.DataSource = DE1.rsCommand3
           With rptCheckpointsReport.Sections("Section2")
            .Controls("lblDateIssued").Caption = "date" + DE1.rsCommand3.Fields("lblDateIssued").Value
          End With
    error msg:
    Item cannot be found in the collection corresponding to the requested name or ordinal

    what's wrong?
    *****************
    VB6,PHP,VS 2005

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: data report

    Code:
      DE1.rsCommand3.Open "SELECT * FROM tbl", con, adOpenDynamic, adLockOptimistic
         If DE1.rsCommand3.EOF <> True Then
         Me.MousePointer = vbHourglass
         
         Set rpt.DataSource = DE1.rsCommand3
           With rptCheckpointsReport.Sections("Section2")
            .Controls("lblDateIssued").Caption = "date" + DE1.rsCommand3.Fields("lblDateIssued").Value
          End With
    error msg:
    Item cannot be found in the collection corresponding to the requested name or ordinal

    what's wrong?
    *****************
    VB6,PHP,VS 2005

  6. #6
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: data report

    Have you checked the name of your controls in the data report?

    Greg
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: data report

    attached is tha design time in datareport.
    did you see the red box? i will just want to change it to:
    "date issued : 03/10/2008"
    tnx to you
    Attached Images Attached Images  
    *****************
    VB6,PHP,VS 2005

  8. #8
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,515

    Re: data report

    "date" + DE1.rsCommand3.Fields("lblDateIssued").Value
    This doesn't look like a field name. Do you actually have a field in the table named "lblDateIssued"? It looks like a datareport control name.

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: data report

    ya you're right, i already changed the field to "0" and declare a new rpt
    and now its working perfectly...
    tnx to your support....

    Code:
    dim rptCheckpointsReport as New rptCheckpointsReport 'ADDED
     DE1.rsCommand3.Open "SELECT * FROM tbl", con, adOpenDynamic, adLockOptimistic
         If DE1.rsCommand3.EOF <> True Then
         Me.MousePointer = vbHourglass
         
           With rptCheckpointsReport.Sections("Section2")
            .Controls("lblDateIssued").Caption = "date" + DE1.rsCommand3.Fields(0).Value
          End With
    *****************
    VB6,PHP,VS 2005

  10. #10
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: data report

    Good work..Mark your thread as resolved...
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width