|
-
Jul 10th, 2004, 08:16 AM
#1
Thread Starter
Hyperactive Member
report layout
I have 2 tables in Access. I use VB to view a report in Crystal Report.
Table1: StaffMaster
EmpCode
EmpName
Table2: StaffHrs
EmpCode
Rfs
Project
Month_Year
ATH
I wish to display a report in Crystal Report as follows:
EmpCode | EmpName | Rfs | Prject | Month_Year | ATH
How do I accomplish this? Can this be done using crosstab query?
The criteria is for Month_Year. I tried using Crosstab query, but I have problems with the date format. The date should be displayed on the report as mmmm yyyy format. Can it be done using the following query?
"SELECT StaffMaster.EmpCode, StaffMaster.EmpName, StaffHrs.RFS, StaffHrs.Project, StaffHrs.Month_Year, " & _
"StaffHrs.ATH FROM StaffMaster LEFT OUTER JOIN StaffHrs ON StaffMaster.EmpCode=StaffHrs.EmpCode " & _
"WHERE StaffMaster.EmpCode=StaffHrs.EmpCode AND StaffMaster.Discipline='Architecture' AND " & _
"StaffHrs.Month_Year BETWEEN #July 2004# AND #September 2004#"
If so, how will I display the fields in the appropriate places?
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
|