|
-
Apr 24th, 2004, 01:51 AM
#1
Thread Starter
Hyperactive Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|