The command that you want to use to open a form as a dialog is as follows:
DoCmd.OpenForm "Calendar", , , , , acDialog
In this example, we are opening a form called Calendar as a dialog.
The acDialog option on the OpenForm command specifies that the parent form (ie: the original form that opened the Calendar form) will not be accessible until the Calendar form is closed.