Hi Ken
Thanks for replying. No, I only looked at using the onDelete event after I
couldn't get beforeDelConfirm/afterDelConfirm working.
I will strip the code tomorrow and see if I can isolate the problem.
Thanks again
Mark
"Ken Sheridan" <(E-Mail Removed)> wrote in message
news:5A10996D-1144-486F-B8C9-(E-Mail Removed)...
> Mark:
>
> Are you unconditionally setting the return value of the Delete event
> procedure's cancel argument to True? If so the BeforeDelConfirm and
> AfterDelConfirm events won't execute. To use a custom deletion
> confirmation
> message you'd put something like this in the Delete event procedure:
>
> If MsgBox("Delete record?", vbQuestion + vbYesNo, "Confirm Deletion")
> =
> vbNo Then
> Cancel = True
> End If
>
> And suppress the system message if the user elects to delete by setting
> the
> return value of the BeforeDelConfirm procedure's Response argument:
>
> Response = acDataErrContinue
>
> Ken Sheridan
> Stafford, England
>
> "Mark" wrote:
>
>> Hi
>>
>> I'm using an Access XP (mdb) which links to SQL Server to retrieve and
>> write
>> data. Data is pulled into front-end tables for editng etc. and then
>> written
>> back to the server (reducing connections etc. and resulting in blinding
>> speed).
>>
>> I have a form (form view) which contains a subform (datasheet) with
>> another
>> subform as a sub-datasheet all bound to front-end tables. My options are
>> set
>> to issue warnings etc., but for some reason the beforeDelConfirm and
>> afterDelConfirm events don't fire on either subform.
>>
>> I have created a simple form/sub/sub and the events fire fine, but in the
>> real form they don't fire at all. the onDelete event fires ok though.
>>
>> Anyone know where the problem might be...
>>
>> Cheers
>>
>> Mark
>>
>>
>>
>>
>
|