473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to merge two distinct records into a single record?

zpq
My data consist of records that have a charge start date and a charge
end date. The data will all consist of a tenant name and id. for
each tenant id, there can be multiple charges identified by the charge
start date and the charge end date. That is to say, the charge start
and end date make the records unique. There are also lease start
dates and lease end dates.

So, Tenant A has a lease start date of 01/01/00 and a lease end date
of 12/31/10, and over the life of the lease, will have 10 seperate
charges with charge steps (increases) each year of $1,000.

So, what you will have is something like this:
A charge start date of 01/01/00 (which is the same as the lease start
date), and a charge end date of 12/31/00, with a value of $10,000
(this is the first charge). The second charge will have a charge
start date of 01/01/01 and a charge end date of 12/31/01, with a value
of $11,000. The third charge will have a charge start date of
01/01/02 with a charge end date of 12/31/02. The pattern will follow
to the end of the lease, so for the life of the lease, there will be
10 unique records for Tenant A.

To complicate things even more, some of the charges start in the
middle of the year, or on the second quarter, etc, etc... For
instance, the (first)charge start date may be 04/01/00 and the charge
end date will be 03/31/01, and this pattern will continue.

There are at least 1,000 records. The longest lease life is out to
2084, with a lease start date of 2000.

My challenge is to create a spreadsheet with the column headings of
each year out to 2084, picking up the charge associated with each
year.

Now, some of the charges are based on five years, that is, the charge
start date is 01/01/01 and the charge end date is 12/31/05, etc....

crosstab query will not work, because I need a value in each field,
unless there is some way of populating the field programatically.

thanks in advance for all suggestions.

stan
Nov 12 '05 #1
0 1307

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: mathilda | last post by:
My boss has been adamant that SELECT DISTINCT is a faster query than SELECT all other factors being equal. I disagree. We are linking an Access front end to a SQL Server back end and normally are...
2
by: Rosy | last post by:
I would like to have a word document that brings in dunning records from Access. I have set it up, but it only lists one invoice per fax. I want all records that pertain to that customer to be...
8
by: dd_bdlm | last post by:
Hi I wonder if anyone can help? I have looked through prevous posts and cant find any answers that fit what I need to do. For reference I am using Access 97 and Word 97. I want to be able to...
3
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge...
1
by: law | last post by:
I love the super easy word merge but I have a question. In my database I select multiple records which I then want to merge to a single document in word. I use the single word merge and get one...
1
by: sparks | last post by:
I just got a chance to dl the work and printed out the docs and noticed on one of the screen shots it says print and there is a button for merge all. So this is for single as well as a complete...
7
by: giladp1 | last post by:
I found Albert Kallal's great "Super easy Word Merge" code in his site at: http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html Thanks Albert so much for sharing this. I am looking...
1
by: kirkus84 | last post by:
I am currently trying to do a multiple record mail merge through a query via a command button on a form. The query basically displays customers who have said yes to privacy. The user inputs a date...
3
by: Michel Esber | last post by:
Hi all, DB2 V8 LUW FP 15 There is a table T (ID varchar (24), ABC timestamp). ID is PK. Our application needs to frequently update T with a new value for ABC. update T set ABC=? where ID...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.