Coding to create a close button to close a form in Libre database

Trying to find the syntax to use a command button to close a form in Libre database.
Any assistance will be appreciated.

Action: Open Document or URL
URL: .uno:CloseDoc

Sub CloseForm(oEvent As Object)
oEvent.Source.Model.Parent.Close(True)
End Sub