borisbruno
Registered User.
- Local time
- Today, 06:33
- Joined
- Oct 14, 2005
- Messages
- 39
I'm not sure if this is a table or a form question. What I'd like to have happen is that a new record will be saved for each recipient by year with the dates of service for each month of that year.
Table design:
DOSInd (PK) Auto#
RecipID (FK) Number
Year Text
Jan Text
Feb Text
.
.
.
Dec Text
These fields appear on a subform as textboxes with the corresponding labels. The problem is that I can't fiqure out how to force a new record to be saved when the year is changed. What is happening is that the newly entered year and monthly dates are saving over the previously saved data.
I've tried several arrangements for primary keys involving the first three fields, but that's not fixing the problem. I've tried an OnChange event for the year control in the form, but I don't think I know the right syntax for doing what it is I want.
Any suggestions would be appreciated, even if that means redesigning table or form. I went this route because of user request. They wanted the main form to display the dates of service for a recipient for the year, and allow for additions as the months go by.
Thank you, Charlotte
Table design:
DOSInd (PK) Auto#
RecipID (FK) Number
Year Text
Jan Text
Feb Text
.
.
.
Dec Text
These fields appear on a subform as textboxes with the corresponding labels. The problem is that I can't fiqure out how to force a new record to be saved when the year is changed. What is happening is that the newly entered year and monthly dates are saving over the previously saved data.
I've tried several arrangements for primary keys involving the first three fields, but that's not fixing the problem. I've tried an OnChange event for the year control in the form, but I don't think I know the right syntax for doing what it is I want.
Any suggestions would be appreciated, even if that means redesigning table or form. I went this route because of user request. They wanted the main form to display the dates of service for a recipient for the year, and allow for additions as the months go by.
Thank you, Charlotte