Solved

creating my sales report

Posted on 2008-06-17
6
313 Views
Last Modified: 2012-06-27
i have this table and there is  date field
the table have the following data
tbl_saleman ( salesman_name , itemcode , item_brand , sales_qty ,    date )
                               a                       1                  a              10             01/01/2008
                              a                       2                  a              11             05/01/2008
                              a                       3                  a              12            09/01/2008
                              a                       1                  a              13             01/02/2008
                              a                       4                 a              11             01/02/2008
                              a                       2                 a              10             01/03/2008

this is the data inserted inside the table

now i need to know is there any way to make this crosstab report with this result
make all the dates for januwary month (1)  for each sales
make all the dates for Februwary month (2)
make all the dates for March month (3)


Sales Man Name               Month (1)    Month (1)         Month (3)

jhon                                   sum(qty)      sum(qty)      sum(qty)      
smith                                  sum(qty)      sum(qty)      sum(qty)      
leo                                      sum(qty)      sum(qty)      sum(qty)      

best regards


iam using vb6 and crystal report 7.0
0
Comment
Question by:abdulhameeds
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 21808226
This should be a s simple as

Insert a cross tab
Choose SALESMAN for the rows
Choose the date for the columns (summarize by month)
Choose the qty for the summary fields.

mlmcc
0
 
LVL 4

Author Comment

by:abdulhameeds
ID: 21810374
maybeu dont under stand me ok
i agree its crosstab remember that i have date with the format ( DD/MM/YYYY ) inside the data base
i need this date to be filtered

i mean all the sales invoices between 01/01/2008 - 31/01/2008 will be Month ( 1 )
                                              Between 01/02/2008-28-02-2008 will be month(2 )
as columns


i need the month withour the day and year
hope it will be clear now
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 21810405
Perfectly clear.  Is it a date field or a string?

If string create a formula to use in the cross tab.  Something like
Date({YourDAteField})

When you put a date field in the cross tab column you have an option to use each day, week, month etc.

mlmcc
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 4

Author Comment

by:abdulhameeds
ID: 21810417
its date but if u need it string i can
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 125 total points
ID: 21810422
Here is a sample report using data similar to yours

SaleManCrosstab.txt
0
 
LVL 4

Author Comment

by:abdulhameeds
ID: 21810468
the file not opend cos its diffirennr version
but it worked best regards to u
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question