Results 1 to 2 of 2

Thread: Data Report Layout

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Location
    India
    Posts
    318

    Data Report Layout

    I am creating a report using the Data Report in VB. The data is taken from two tables with a certain date criterea, that is, between two
    dates. The date is formatted as MMMM yyyy. My problem is that the layout of the report does not match the data from the table. To make
    my problem clear, the report layout is as follows:

    Month1 Month2 Month3
    Name|W1 W2 W3 W4 W5| W1 W2 W3 W4 W5|W1 W2 W3 W4 W5

    where W1, W2 etc are the weeks of the month.

    Now, let me give you the structure of my table. It is as follows:

    Name Month W1 W2 W3 W4 W5

    The Query is as follows:

    "SELECT DISTINCT EMPNAME, AH1, AH2, AH3, AH4, AH5 FROM STAFFMASTER, STAFFHRS WHERE " & _
    "STAFFMASTER.EMPCODE=STAFFHRS.EMPCODE AND STAFFHRS.[PROJECT]='" & cbo1.Text & _
    "' AND STAFFHRS.[MONTH & YEAR]>=#" & Format(DTP1.Value, "MMMM yyyy") & _
    "# AND STAFFHRS.[MONTH & YEAR]<=#" & Format(DTP2.Value, "MMMM yyyy") & "#"

    Now, how will I distribute the data in my report? One important thing, I am building dynamic data report. Please help.

    Thanks

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Location
    India
    Posts
    318
    I found out that one record is displayed per line in the data report in VB, be it how many ever controls are there in the Detail section. That is why the same data is displayed on through out the controls on one line. Is there a way to display more than one record in one line in the report? Or may be, I think that if I change my SQL, I will get how I want the report to be. Please help.

    Thanks
    Last edited by shersu; Apr 28th, 2004 at 08:00 AM.

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