Why this code does't work oEvent.Reason

Sub OnDatabaseError(oEvent As Object) '***********************************
    ' The oEvent object contains details about the error
    MsgBox "That Job already exist, Change Job Number " & oEvent.Reason
End Sub

I get a “BASIC runtime error incorrect property value” message

Inspect the oEvent struct.

1 Like

sounds like a good reason :expressionless:

I guess, somehow AI hallucinated it …
now if you do want to understand, you’d need to go and browse around
LibreOffice: InvalidProtocolChangeException Exception Reference
where only reason appears …