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  

MS Access Counter



 
 
Thread Tools Display Modes
  #1  
Old June 13th, 2008, 03:47 AM posted to microsoft.public.access.queries
Laura1 via AccessMonster.com
external usenet poster
 
Posts: 29
Default MS Access Counter

Here is my issue:

The data in my database has multiple SS# per acct number

SS# 5678
acct# 1414

SS #1234
acct #1414

SS#9898
acct#1414

I need to post the data accros in on one row. I am doing that by doing an
update querry based on a group by count with participation great then one SS#.
However, I need to add the count to the table based on the ss# and account so
it would look like this:

1 SS# 5678
acct# 1414

2 SS #1234
acct #1414

3 SS#9898
acct#1414

How do I get the 1, 2, 3 to generate?

I know this is a bit confusing I did the best I could in explaining it.
THANKS!!

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200806/1

  #2  
Old June 13th, 2008, 04:51 AM posted to microsoft.public.access.queries
Duane Hookom
external usenet poster
 
Posts: 7,177
Default MS Access Counter

Here is a method for adding a counter to the Northwind employee table by title:

SELECT Employees.Title, Employees.LastName, Count(Employees_1.EmployeeID) AS
RankOrder
FROM Employees LEFT JOIN Employees AS Employees_1 ON Employees.Title =
Employees_1.Title
WHERE (((Employees.EmployeeID)=[Employees_1].[EmployeeID]))
GROUP BY Employees.Title, Employees.LastName
ORDER BY Employees.Title;

--
Duane Hookom
Microsoft Access MVP


"Laura1 via AccessMonster.com" wrote:

Here is my issue:

The data in my database has multiple SS# per acct number

SS# 5678
acct# 1414

SS #1234
acct #1414

SS#9898
acct#1414

I need to post the data accros in on one row. I am doing that by doing an
update querry based on a group by count with participation great then one SS#.
However, I need to add the count to the table based on the ss# and account so
it would look like this:

1 SS# 5678
acct# 1414

2 SS #1234
acct #1414

3 SS#9898
acct#1414

How do I get the 1, 2, 3 to generate?

I know this is a bit confusing I did the best I could in explaining it.
THANKS!!

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200806/1


 




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 10:44 AM.


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