PC Review


Reply
Thread Tools Rate Thread

Condensing several fields to one and adding records

 
 
New Member
Join Date: Oct 2011
Posts: 1
 
      31st Oct 2011
Hi,

I'm hoping this problem is just because I'm not sure how to look at it logically and therefore cannot find an elegant SQL solution and not that it's just impossible to do. Ok here it goes!

We have a database of treaties and the countries that have entered them. We also have several fields reflecting when the countries have entered and exited the treaties. A country may have several entries and exits, so there are more fields for those countries (example: USA enters the TreesGood treaty in 2003 and leaves in 2005, then they re-enter the treaty in 2007 and exits in 2010. There would be one row for this country and with values in the YearEntry1, YearExit1, YearEntry2, and YearExit2 fields). However, we want to have a single record for each country for each year it was in the treaty (so TreesGood, USA, 2003; TreesGood, USA, 2004; TreesGood, USA, 2005; TreesGood, USA, 2007; etc).

How do I go about running this in Access? I have no background in VBA so if it requires running some VBA code instead of using SQL please include some instructions on how to run the VBA code!

Thanks so much and looking forward to seeing what you guys think!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
condensing multiple fields in different columns time conversion Microsoft Excel Misc 2 7th Feb 2009 11:41 PM
Condensing data from one field for one record =?Utf-8?B?U2FuZGll?= Microsoft Access Reports 2 20th Mar 2007 05:51 AM
Condensing one column to another without spaces. =?Utf-8?B?R2FyeQ==?= Microsoft Excel Worksheet Functions 2 28th Apr 2005 10:54 PM
Condensing Text fields into a Memo field - Need to retain line spa =?Utf-8?B?IkRvYyIgRG9uIFN0dXJnaXNz?= Microsoft Access 3 28th Dec 2004 03:43 AM
Condensing text values from one wksht to another =?Utf-8?B?amF5Y2VlamF5?= Microsoft Excel New Users 4 5th Mar 2004 08:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:06 PM.