473,465 Members | 4,818 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Merge records in Access 2007

Hi,

I have a Contacts database which also tracks the years that each person was invited to specific events and the years he attended. My data currently looks like this:

Event_ID Contact_ID Record_ID Yr Invited Attended
26 644 2199 2010 -1 0
26 644 310 2011 -1 0
26 644 1754 2009 -1 0
26 644 2781 2010 0 -1
26 644 3343 2009 0 -1

What I'd like to do is to somehow merge the data together so that it looks something like this:

26 644 310 2011 -1 0
26 644 1754 2009 -1 -1
26 644 2781 2010 -1 -1

I've searched this forum as well as several other places and I can't quite find what I'm looking for. Is anyone out there able to help me? I'd really appreciate it! Thanks in advance!
Oct 19 '10 #1
1 1530
NeoPa
32,556 Recognized Expert Moderator MVP
To start off with, you need to organise your data correctly in the first place. [Record_ID] appears entirely irrelevant so should be dropped. Whatever else is unique (I would guess [Event_ID], [Contact_ID] & [Year]) should be set as a unique index, if not the primary key. Indices can be made up of multiple fields and you'd need to for this.

Next you'd need a system whereby the related record is amended when entering data, if one already exists. Records should only be added when a related one doesn't exist.

Lastly, you'd need a couple of queries. First to update any records with [Invited] set to reflect those with [Attended] set, then another to remove any records with [Attended] set which have a match to records with [Invited] set.
Oct 19 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: David1129 | last post by:
I'm working on testing a large application with Access 2007. It has been running under 2003 and XP with no obvious errors. However with 2007 many forms seem to have lost the ability to filter....
1
by: Don | last post by:
Since upgrading to Access 2007 from Access 2003, my mouse wheel no longer advances or reverses the records in form view. Did I miss a setting? It worked fine in Access 2003. TIA
0
by: nebbiasun | last post by:
I have a split database which calls a word document (mail merge from query) which works perfectly in both access 2003 and 2007. I have secured the frontend and backend (user level security) in 2003...
2
by: ARC | last post by:
Just curious if anyone is having issues with Acc 2007 once the number of objects and complexity increases? I have a fairly large app, with many linked tables, 100's of forms, queries, reports, and...
4
by: lupo666 | last post by:
Hi everybody, this time I have three problems driving me nuts :-((( (1) I have a report with 20 or so Yes/No "squares". Is there a way to either hide/show the "square" or change the yes/no...
3
by: masonic35and7 | last post by:
I work for a school district, and I have just imported 6 Excel worksheets into Access 2007. Now I have 6 different tables. In each table all the fields are the same. I need the easiest way to...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
3
by: khoward | last post by:
Hi, I have an Access 2007 database that contains customer contact information. There are over 8,000 that include name, organization (as a look-up column), email, phone, address, and events that...
2
by: brat33 | last post by:
I am trying to modify some code to create a mail merged label document within Word 2007, using a Access 2007 Parameter Field. My issue comes about when I cannot see the Parameter Query within the...
1
newnewbie
by: newnewbie | last post by:
Hi, Short version: trying to export more than 65K of data from Access 2007 into Excel 2007 (important) through VBA. Access gives me 65K row limitation error, though I thought that was no longer...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.