if those "associated records in the subform" are actually child records
related to the parent record in the main form (single view or datasheet),
then the tables should be properly related in the Relationships window, with
CascadeDelete enabled in the link dialog. when your tables are correctly set
up as described, then deleting a parent record will cause the related child
records to be deleted automatically - without Delete queries, or VBA code,
or anything else needed.
hth
> Vista Ultimate / Office 2007 Pro
>
[quoted text clipped - 19 lines]
> controls) on the main form changes according to the 'status' (field) of a
> record. However, changing selection in the datasheet does not repaint the
> main form to change the label to the records 'status'. It simply changes the
> current record displayed. How can I fire an event to repaint (or requery?)
[quoted text clipped - 4 lines]
> Cheers,
> John
Sprads - 17 Jul 2007 10:30 GMT
Hey Tina,
Thx for your advice. Yep, I'd considered letting Access do the job using
CascadeDelete but was a bit concerned about it's reliability in multiuser
environment. I'll give it a shot though.
I'm pushing it but...any ideas on my second point...how to update a form
label on selection change in the split form datagrid?
Many thanks once again!
John.
> if those "associated records in the subform" are actually child records
> related to the parent record in the main form (single view or datasheet),
[quoted text clipped - 47 lines]
> > Cheers,
> > John
Sprads - 17 Jul 2007 21:18 GMT
Update:
Thanks for your advice Tina. I've made use of the CascadeDelete and seems to
work nicely. I've also found that the OnCurrent event does trigger upon
selection change in the datasheet, however label captions will not refresh.
I'm using an unbound text box to show what's needed...which is nice!
Cheers.
Sprads
> Hey Tina,
>
[quoted text clipped - 59 lines]
> > > Cheers,
> > > John