A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Duplicates in One Field



 
 
Thread Tools Display Modes
  #1  
Old October 4th, 2006, 09:42 PM posted to microsoft.public.access.queries
SBow
external usenet poster
 
Posts: 2
Default Duplicates in One Field

I have searched and read all the documents on Duplicates but they are not
full helping me with my question.

I have a query that has 3 fields, Name, Number, Date
Then I want to count the unduplicated Numbers in a cross tab query by month
and for each name.
Is this possible, I keep getting the duplicate Number fields when I add
Date to the query.

  #2  
Old October 5th, 2006, 12:03 AM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Duplicates in One Field

Post the SQL for your crosstab query, sample date for it, and what you want
the results to look like.

"SBow" wrote:

I have searched and read all the documents on Duplicates but they are not
full helping me with my question.

I have a query that has 3 fields, Name, Number, Date
Then I want to count the unduplicated Numbers in a cross tab query by month
and for each name.
Is this possible, I keep getting the duplicate Number fields when I add
Date to the query.

  #3  
Old October 5th, 2006, 12:35 PM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 7,815
Default Duplicates in One Field

Use a Base Query to get distinct value set
SELECT Distinct T.Name, T.Number, Format(T.Date,"yyyy-mm") as YrMonth
FROM YourTable as T
WHERE T.Date Between #1/1/2005# and #12/31/2005#

Use that query as the source for your crosstab.

"SBow" wrote in message
news
I have searched and read all the documents on Duplicates but they are not
full helping me with my question.

I have a query that has 3 fields, Name, Number, Date
Then I want to count the unduplicated Numbers in a cross tab query by
month
and for each name.
Is this possible, I keep getting the duplicate Number fields when I add
Date to the query.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.