All,
I thought it might be beneficial to start a separate topic for this topic.
Is there any way to programmically 'trap' this notice? (Specifically for 'Lock Violations')
MyDb didn't update 0 field(s) due to a conversion failure, 0 record(s) due to key violations, 1 record(s) due to lock violations, and 0 record(s) due to validation rule violations. (image attached)
My goal is to have VBA provide a much nicer and meaningful message if this should happen.
An proposed example is below:
Thanks for any advice -
Kind regards.
Gunner
I thought it might be beneficial to start a separate topic for this topic.
Is there any way to programmically 'trap' this notice? (Specifically for 'Lock Violations')
MyDb didn't update 0 field(s) due to a conversion failure, 0 record(s) due to key violations, 1 record(s) due to lock violations, and 0 record(s) due to validation rule violations. (image attached)
My goal is to have VBA provide a much nicer and meaningful message if this should happen.
An proposed example is below:
Code:
If {magic code to see if record is locked} = True then Msgbox "Custom Failure Message Here." Exit Sub Else: DoCmd.RunSQL "SQL Code here" EndIf
Kind regards.
Gunner
Comment