gusbrunston
Programmer
[TT]
Hi:
I would like to run a make-table query to post rents to a table used to produce invoices.
Existing table includes the following fields:
TenantID
Rent
LeaseStartDate
LeaseEndDate
For each TenantID the new table should contain a record for the Rent due on the first of each month equal to or greater than the LeaseStartDate and less than or equal to the LeaseEndDate.
The new made table should look like this:
TenantID Date Rent
0006 04/01/06 $1195.00
0006 05/01/06 $1195.00
0006 06/01/06 $1195.00
0006 07/01/06 $1195.00
etc...
0015 05/01/06 $995.00
0015 06/01/06 $995.00
0015 07/01/06 $995.00
0015 08/01/06 $995.00
0015 09/01/06 $995.00
etc...
(After the original made-table is created, I know how to update it each month...that is add a record for the current month. My need is to create the "first edition" from past data.)
Not very experienced at SQL, I am working from the query design view of Access 2003. So far, I've been unable to crack this nut.
Any help would be very much appreciated.
Thanks,
Gus[/TT]
[tt]
Gus Brunston
www.thefirstnationalnetwork.com[/tt]
Hi:
I would like to run a make-table query to post rents to a table used to produce invoices.
Existing table includes the following fields:
TenantID
Rent
LeaseStartDate
LeaseEndDate
For each TenantID the new table should contain a record for the Rent due on the first of each month equal to or greater than the LeaseStartDate and less than or equal to the LeaseEndDate.
The new made table should look like this:
TenantID Date Rent
0006 04/01/06 $1195.00
0006 05/01/06 $1195.00
0006 06/01/06 $1195.00
0006 07/01/06 $1195.00
etc...
0015 05/01/06 $995.00
0015 06/01/06 $995.00
0015 07/01/06 $995.00
0015 08/01/06 $995.00
0015 09/01/06 $995.00
etc...
(After the original made-table is created, I know how to update it each month...that is add a record for the current month. My need is to create the "first edition" from past data.)
Not very experienced at SQL, I am working from the query design view of Access 2003. So far, I've been unable to crack this nut.
Any help would be very much appreciated.
Thanks,
Gus[/TT]
[tt]
Gus Brunston
www.thefirstnationalnetwork.com[/tt]