Access 2013 One record from many with same key

Anonymous
2014-04-30T19:33:12+00:00

So here is the problem: I have an excel file of

records. Among these records are some that belong to the same person,

different data. Because each person is identified with their own Id,

i.e, unique key, I am having an issue placing the data from two or more

records belonging to the same person in a single record for a data

summation.

I eventually, or simultaneously want to include the synthesized record with all other records for a count of data contained within all the records.

Of course, I have imported the records into an Access 2013 table for

manipulation, but I can't create a single record with multiple data from

the multiple records with identical keys.

If anyone has a solution or requires further clarification, I would appreciate help on the project.

Additional information; the table holds fields for all the data.

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

54 answers

Sort by: Oldest
  1. Anonymous
    2014-05-05T22:33:45+00:00

    John,

    I can't beat this horse anymore. the SQL comes back with syntax errors...

    and like I said before, I didn't originally use SQL... I'm sure I must have use the wizard.

    Is there no wizard approach I can use?

    AB

    Was this answer helpful?

    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Anonymous
    2014-05-05T22:43:47+00:00

    My apologies. Since I was typing the query in freehand without an actual database I left out a closing parenthesis for the Sum function:

    SELECT [Membership_Person].[PersonName], Sum([Membership_Masterfile].[VIsits]) AS SumOfVisits

    FROM [Membership_Person] INNER JOIN [Membership_Masterfile]

    ON [Membership_Person].[PersonID] = [Membership_Masterfile].[Person_ID]

    GROUP BY [Membership_Person].[PersonName];

    and similarly for the other queries.

    Note that all queries, without exception, no matter how they're created, ARE SQL. SQL is the language in which queries exist. The wizards and the query grid are just tools to build SQL. So am I at times, just a bit more prone to error, for which I'm sorry!

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2014-05-05T23:15:12+00:00

    It works, and I thank you.

    I'm tightening the loose screws in my head now.

    Was this answer helpful?

    0 comments No comments