Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with queries and reports... 1

Status
Not open for further replies.

PHAEDRA

Technical User
Feb 12, 2004
2
GR
Good Morning to everyone. First of all, I want you to know that I'm not a native English speaker, so please be patient with my English.

Here's my problem. I work in the Sales Department of a large company, and my job is to "watch" the visits of our Represantatives to our Customers. Our company sells 4 products.

I have create a query which looks like this:

CustID Date of call pr1 pr2 pr3 pr4
--------------------------------------------------
22571 7/1/2004 1 3 2 4
22483 8/1/2004 2 1
55263 8/1/2004 3 1 2

and what I get form this query (among other data) for each rep, is the customer that he visited, the date and the ORDER OF PRODUCTS PRESENTATION.

So, to the customer 22571, he presented first the product1, then the product 3, then the product 2, then the product 4.

To the customer 22483, he presented first the product2 and then the product 1 etc.

What I want to have from theese data is a report which will look like this:

Pr1-Pr2-P3-P4: 5 times in a month
Pr2-Pr1-Pr3: 3 times in a month
Pr3-Pr2-Pr1: 5 times in a month etc.


I hope that I gave you to understand what I want and... I'm waiting for your answers

thanks in advance

Phaedra
 
I may be simplifying this too much but...
An easy way would be to concatenate the PR fields into one field.

PrOrder:[PR1]&[Pr2]&[PR3]&[PR4]

Then add a field to your query.

CountPRorder:count(PrOrder)


You can then specify the date range in your query parameters.

HTH,
Eric

P.S.
Your English is better than a lot of native speakers.
 
Eric, you' re great!!!!

Thank you very very much! Your suggestion, was the solution I was looking for!!!!

Kisses from Greece!!!

Phaedra
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top