|
-
Feb 19th, 2003, 03:37 PM
#1
Thread Starter
Member
DataReport and Grouping
In my database I have a table called WorkingTime with 6 fields. Name, Date, In, Out, Late, Info.
I would like to group my report by Name:
Name1
---------------------------------------------------
Date1 In Out Late Info
Date2 In Out Late Info
Date3 In Out Late Info
Date4 In Out Late Info
---------------------------------------------------
Name2
---------------------------------------------------
Date1 In Out Late Info
Date2 In Out Late Info
Date3 In Out Late Info
Date4 In Out Late Info
and so on....
How would I do this, using Shape?
-
Feb 19th, 2003, 04:41 PM
#2
Fanatic Member
sql = "SHAPE {SELECT * FROM WorkingTime } AS Command1 COMPUTE Command1 BY Name"
rs.open sql, cn
datareport1.datamember = "Command1_Grouping"
set datareport1.datasource = rs
Last edited by ralph; Feb 19th, 2003 at 04:53 PM.
VB 6.0, Access, Sql server, Asp
-
Feb 19th, 2003, 06:09 PM
#3
Thread Starter
Member
Sorry. Didn't work.
Gives me an error.
Number: 3001.
Description:
The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another.
-
Feb 20th, 2003, 08:37 AM
#4
Fanatic Member
Do yourself a favor. Even if you're not using the dataenvironment, use it to set the report up and working. Then copy the info/properties/connectionstring/shape statement/etc that it generates. Then discard the dataenvironment.
VB 6.0, Access, Sql server, Asp
-
Feb 20th, 2003, 01:02 PM
#5
Thread Starter
Member
Ok, I'll try that.
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
|