monkeytunes
Serf of the Jungle
- Local time
- Today, 01:21
- Joined
- Jun 8, 2004
- Messages
- 120
After lurking around the forums for a couple weeks, I've decided to undertake some DB redesign, and I could use some guidance towards achieving my goals.
At my company, we send out a contract (consisting of many exhibits) to our consultants every year, while tracking correspondance with those consultants. In a perfect world, I'd like the users to see a form in single record view set up like this:
a. At the top, the consultant's name and some contact info. A combo list would let users flip from consultant to consultant (We have about 50).
b. A subform which allows the user to see which components of the contract have been executed and which are pending. This should be in single form view, with a different year apparent when you switch records.
c. A second subform (maybe/maybe not within the first subform?) which shows the correspondance relating to that year's contract.
My problem is with that pesky year criteria. Currently I have three tables, set up like this:
tblContact - the usual garbage, w/r/t phone numbers, addresses, etc., with an indexed "consultants" field
tblContracts - linked by "consultants", this has a series of dates entered into fields like "ContractSent", "ExhibitA", "ExhibitB", etc.
tblCorrespondance - This has no unique index (except for the Autonumber), and keeps a running tally of which consultant we spoke to, the date we spoke to them, and a Memo field for a summary of what was talked about. It's not unsual to correspond with consultants many, many times over the contract, are many consultants in a single day, or the same consultant twice in the same day. As a result, this table has many repeating consultants, and many repeating dates.
Right now I have everything set up so that users can flip from year to year no problem for contract viewing, but since I can't relate dates from one table to dates from another table by year, they see ALL the correspondance from previous years for every consultant.
I've tried using an text extra field in tblContracts and tblCorrespondance and making users enter 2004 or whatever and relating the tables/queries that way. However, I'd rather relate it by the year within the Date/Time fields from both tables, but I can't figure out how to relate a date field (like "ContractSent" which would probably be 1/1/2004 for every consultant's contract in 2004, 1/1/2005 for every consultant's contract in 2005, and so on) to many records in a date field in another table which will have a constant differences in days and months. All I want is that pesky year! Any ideas?
-Matt
At my company, we send out a contract (consisting of many exhibits) to our consultants every year, while tracking correspondance with those consultants. In a perfect world, I'd like the users to see a form in single record view set up like this:
a. At the top, the consultant's name and some contact info. A combo list would let users flip from consultant to consultant (We have about 50).
b. A subform which allows the user to see which components of the contract have been executed and which are pending. This should be in single form view, with a different year apparent when you switch records.
c. A second subform (maybe/maybe not within the first subform?) which shows the correspondance relating to that year's contract.
My problem is with that pesky year criteria. Currently I have three tables, set up like this:
tblContact - the usual garbage, w/r/t phone numbers, addresses, etc., with an indexed "consultants" field
tblContracts - linked by "consultants", this has a series of dates entered into fields like "ContractSent", "ExhibitA", "ExhibitB", etc.
tblCorrespondance - This has no unique index (except for the Autonumber), and keeps a running tally of which consultant we spoke to, the date we spoke to them, and a Memo field for a summary of what was talked about. It's not unsual to correspond with consultants many, many times over the contract, are many consultants in a single day, or the same consultant twice in the same day. As a result, this table has many repeating consultants, and many repeating dates.
Right now I have everything set up so that users can flip from year to year no problem for contract viewing, but since I can't relate dates from one table to dates from another table by year, they see ALL the correspondance from previous years for every consultant.
I've tried using an text extra field in tblContracts and tblCorrespondance and making users enter 2004 or whatever and relating the tables/queries that way. However, I'd rather relate it by the year within the Date/Time fields from both tables, but I can't figure out how to relate a date field (like "ContractSent" which would probably be 1/1/2004 for every consultant's contract in 2004, 1/1/2005 for every consultant's contract in 2005, and so on) to many records in a date field in another table which will have a constant differences in days and months. All I want is that pesky year! Any ideas?
-Matt