Hi, Firstly I'm very new to access to apologies if I don't word any of this correctly.
I have a set of data in 1 single table that contains email addresses and references. There can be more than 1 reference assigned to an email address and I need to be able to sequentially number them so that later on I can export all the references on a single line showing the email address only once (planning to use the sequential number to identify duplicates and create additional tables or queries later on).
For Example initial data will be recorded in table FULL_LIST as:-
email_address1 Ref100
email_address2 Ref101
email_address3 Ref103
email_address3 Ref104
email_address4 Ref105
email_address4 Ref106
email_address4 Ref107
What I am after is the ability to run a query which has a number in as follows:-
email_address1 Ref100 1
email_address2 Ref101 1
email_address3 Ref103 1
email_address3 Ref104 2
email_address4 Ref105 1
email_address4 Ref106 2
email_address4 Ref107 3
The query I'm currently trying looks like this:-
SELECT (Select Count(*)
from Full_List As H
Where H.Email_Address = Full_List.Email_Address) AS [Assign#], *
FROM Full_List
ORDER BY Email_address, ACCREF DESC , ONLINEKEYREF;
and the results look like this:-
email_address1 Ref100 1
email_address2 Ref101 1
email_address3 Ref103 2
email_address3 Ref104 2
email_address4 Ref105 3
email_address4 Ref106 3
email_address4 Ref107 3
Can anyone help at all?
Many thanks
P.S. I can't post images yet as I'm a new member so I've attached screenshots of data instead in a word doc (all data is sample and not real references or emails in case anyone worries).
I have a set of data in 1 single table that contains email addresses and references. There can be more than 1 reference assigned to an email address and I need to be able to sequentially number them so that later on I can export all the references on a single line showing the email address only once (planning to use the sequential number to identify duplicates and create additional tables or queries later on).
For Example initial data will be recorded in table FULL_LIST as:-
email_address1 Ref100
email_address2 Ref101
email_address3 Ref103
email_address3 Ref104
email_address4 Ref105
email_address4 Ref106
email_address4 Ref107
What I am after is the ability to run a query which has a number in as follows:-
email_address1 Ref100 1
email_address2 Ref101 1
email_address3 Ref103 1
email_address3 Ref104 2
email_address4 Ref105 1
email_address4 Ref106 2
email_address4 Ref107 3
The query I'm currently trying looks like this:-
SELECT (Select Count(*)
from Full_List As H
Where H.Email_Address = Full_List.Email_Address) AS [Assign#], *
FROM Full_List
ORDER BY Email_address, ACCREF DESC , ONLINEKEYREF;
and the results look like this:-
email_address1 Ref100 1
email_address2 Ref101 1
email_address3 Ref103 2
email_address3 Ref104 2
email_address4 Ref105 3
email_address4 Ref106 3
email_address4 Ref107 3
Can anyone help at all?
Many thanks
P.S. I can't post images yet as I'm a new member so I've attached screenshots of data instead in a word doc (all data is sample and not real references or emails in case anyone worries).