Haythem:
As I said, I wasn't sure of what you are doing.
What is the form that opens when your dbase starts? I was assuming it is a switchboard that you created with Switchboard manager.
But in anycase...To create that module. Goto the Modules Icon on the bar on the left in the database window. Go up to where it says design and new and hit new. When the VB window opens you will see Option Compare Database...
Under that put this Code:
Function OpenFirst()
DoCmd.Close acForm, "Switchboard", acSaveNo
DoCmd.OpenForm "frmName2", acNormal, , , acFormEdit, acWindowNormal
End Function
Now, back in your switchboard, you will goto the item that you use to make this happen. The text could read "Enter Record", your action will be Run Code, Function Name will be OpenFirst
If you are NOT using a switchboard, you can modify the code above to be set on the OnClick event property of a command button and modify the name "Switchboard" to that current form's name.
HTH, If not, I will keep trying.