Results 1 to 8 of 8
  1. #1
    Mike Y is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Posts
    4

    Duplicate email addresses in a report

    I have set up a report from the customer table and when I look at the report it shows the email address twice repeated. For example mike.yates@talktalk.netmike.yates@talktalk.net. I need to get rid of the second address.

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Go into the Field (TextBox) on your Report that is returning this field, open its Properties, and check to see what its Control Source is.
    What is it set to?

  3. #3
    Mike Y is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Posts
    4
    Thanks for the reply. The control is set to email address and on the table is set to hyperlink. Here is a sample of what is being returned on the report. danthony55@talktalk.net#mailto:danth...talktalk .net#

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    So, it sounds like it is just pulling what you have in the field.
    Perhaps you need a separate field in your table, one for the email address, in simple text format, and one for your hyperlink.

  5. #5
    Mike Y is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Posts
    4
    Have changed the field to small text as suggested but still get the same results on the report. Any other suggestions?

  6. #6
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    That makes no sense.
    Can you post an example, of exactly what you see in the Table field?
    Are there any special characters (i.e. some carriage returns) or anything in your data?
    You may want to create a query where you return a field, and then a calculated field that returns the length of that field, to confirm that the length seems to match what it looks like the length is (and there isn't other stuff there).

    You can also upload a sample database for analysis (just be sure to remove any sensitive data first).
    I cannot download it from my current location, but can from home (or someone else may take a look at it in the meantime).

  7. #7
    Mike Y is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Posts
    4
    This is the SQL from the union f three queries. Will this help in finding the problem? If not I will how do you dowmload a file please? SELECT Volunteers.VolunteerID, Volunteers.ANVSection, Volunteers.Title, Volunteers.LastName, Volunteers.FirstName, Volunteers.HomeTelephone, Volunteers.MobileTelephone, Volunteers.emailAddress, Volunteers.HouseName, Volunteers.Address, Volunteers.Area, Volunteers.Town, Volunteers.County, Volunteers.PostCode, [Volunteers].[FirstName] & " " & [LastName] AS ShortName, [Volunteers].[LastName] & " , " & [FirstName] AS FullName, (+[HouseName]+",") & " " & (+[Address]+", ") & (+[Area]+", ") AS ShortAddr, (+[HouseName]+",") & " " & (+[Address]+", ") & (+[Area]+", ") & (+[Town] & ", ") & [County] & ", " & [Postcode] AS Addr, Volunteers.PositionStatus
    FROM Volunteers
    WHERE (((Volunteers.ANVSection)="Administration") AND ((Volunteers.PositionStatus)="member"))
    UNION
    SELECT Volunteers.VolunteerID, Volunteers.ANVSection1, Volunteers.Title, Volunteers.LastName, Volunteers.FirstName, Volunteers.HomeTelephone, Volunteers.MobileTelephone, Volunteers.emailAddress, Volunteers.HouseName, Volunteers.Address, Volunteers.Area, Volunteers.Town, Volunteers.County, Volunteers.PostCode, [Volunteers].[FirstName] & " " & [LastName] AS ShortName, [Volunteers].[LastName] & " , " & [FirstName] AS FullName, (+[HouseName]+",") & " " & (+[Address]+", ") & (+[Area]+", ") AS ShortAddr, (+[HouseName]+",") & " " & (+[Address]+", ") & (+[Area]+", ") & (+[Town] & ", ") & [County] & ", " & [Postcode] AS Addr, Volunteers.PositionStatus
    FROM Volunteers
    WHERE (((Volunteers.ANVSection1)="Administration") AND ((Volunteers.PositionStatus)="member"))
    UNION SELECT Volunteers.VolunteerID, Volunteers.ANVSection2, Volunteers.Title, Volunteers.LastName, Volunteers.FirstName, Volunteers.HomeTelephone, Volunteers.MobileTelephone, Volunteers.emailAddress, Volunteers.HouseName, Volunteers.Address, Volunteers.Area, Volunteers.Town, Volunteers.County, Volunteers.PostCode, [Volunteers].[FirstName] & " " & [LastName] AS ShortName, [Volunteers].[LastName] & " , " & [FirstName] AS FullName, (+[HouseName]+",") & " " & (+[Address]+", ") & (+[Area]+", ") AS ShortAddr, (+[HouseName]+",") & " " & (+[Address]+", ") & (+[Area]+", ") & (+[Town] & ", ") & [County] & ", " & [Postcode] AS Addr, Volunteers.PositionStatus
    FROM Volunteers
    WHERE (((Volunteers.ANVSection2)="Administration") AND ((Volunteers.PositionStatus)="member"));

  8. #8
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If not I will how do you dowmload a file please?
    If you click the "Go Advanced" button under the small Reply window at the bottom of the page, it will bring up an Advanced Reply box. Under the Additional Options section, there is a button for "Manage Attachments", that you can use to upload your file.

    I won't be able to download it here from my current location, but will be able to take a look at it tonight when I am home.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Email addresses
    By RBCC in forum Programming
    Replies: 1
    Last Post: 12-13-2015, 06:08 AM
  2. Send email using CDO, get email addresses from table
    By marvinac1 in forum Programming
    Replies: 3
    Last Post: 12-22-2014, 12:54 PM
  3. Replies: 3
    Last Post: 08-16-2013, 04:15 PM
  4. Finding email addresses using VBA
    By P.Malius in forum Programming
    Replies: 1
    Last Post: 07-04-2012, 07:17 AM
  5. send email to email addresses in database?
    By cnstarz in forum Access
    Replies: 5
    Last Post: 03-02-2011, 09:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums