please look at the help article on "docmd.openform". look that up and check out the arguments. the "openreport" method of the 'docmd' command has almost the same syntax, if not exactly the same.
Remember if you do look at the article, that optional arguments for the method begin when you see the first bracket ([) in the complete syntax at the top of the article. Everything between the two brackets ([]) are optional arguments.