R
raycafc
I have 2 problems that I would like help with please.
They both concern the linking of two forms, each with their own subforms.
The first pairing is a form called Job and a subform called Job Spec. The
second pairing is Area and its subform Services.
On the Job form there is a drop-down which lists all of the Areas and
Services for that Job. These are concatenated into one field, so it says
something like Hot Water Area / Taps etc. It will only list the Area /
Services for that Job. These are selected in the Area / Services forms (the
2nd pairing). If I go from the Job form to the Area / Services form I can
select more or delete existing Areas / Services.
The first question therefore is:
how do I keep the drop-down showing the correct data, so that if a new Area
/ Service is added it shows in the drop-down.
The second question is:
As I have cascade delete on the Services / Job Spec relationship, for good
reasons, if I delete a Service or Area, the Job Specs linked to them are also
deleted. But the Job Spec subform, which has remained open, shows the deleted
lines with the words "Deleted". I understand why it is doing this, and if I
do a Refresh they disappear, but how do I make them disappear automatically?
I hope this hasn't gone on too long, and if you have any questions please do
not hesitate to ask.
They both concern the linking of two forms, each with their own subforms.
The first pairing is a form called Job and a subform called Job Spec. The
second pairing is Area and its subform Services.
On the Job form there is a drop-down which lists all of the Areas and
Services for that Job. These are concatenated into one field, so it says
something like Hot Water Area / Taps etc. It will only list the Area /
Services for that Job. These are selected in the Area / Services forms (the
2nd pairing). If I go from the Job form to the Area / Services form I can
select more or delete existing Areas / Services.
The first question therefore is:
how do I keep the drop-down showing the correct data, so that if a new Area
/ Service is added it shows in the drop-down.
The second question is:
As I have cascade delete on the Services / Job Spec relationship, for good
reasons, if I delete a Service or Area, the Job Specs linked to them are also
deleted. But the Job Spec subform, which has remained open, shows the deleted
lines with the words "Deleted". I understand why it is doing this, and if I
do a Refresh they disappear, but how do I make them disappear automatically?
I hope this hasn't gone on too long, and if you have any questions please do
not hesitate to ask.