Lyndon wrote:
> Hi all,
>
> I've got a subform within a form in Access in datasheet mode. The
> source object is a table in my database and when I open the form, the
> data is shown in the subform datasheet correctly. I can make changes
> to the data in the subform and they are updated in the database table
> as expected. However, the Before Update event is not being triggered
> when I update the data in my sub form. I have created an
> EventProcedure for the Before Update event for the form (not the
> sub-form) and put a message box in the procedure just to check that
> it's working but it isn't... this is my event procedure coude if it
> will be of any assistance:
>
> Private Sub Form_BeforeUpdate(Cancel As Integer)
> MsgBox "BeforeUpdate", vbOKOnly
> End Sub
>
> If I put a breakpoint at the MsgBox line and run the application it
> never gets into this procedure... it seems that the Before Update
> event is not being called. Any ideas..?
>
> Thanks in advance,
> Lyndon.
Changing records in the subform will not trigger the update events in the
parent form because no updates are occurring there. Each form is completely
separate in that regard.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
|