What's the equivalent code of Echo=No?

S

Sam Kuo

Hi,

I'd like to open a form with a command button using code. The code below
does that. But I'd see both forms for a split of a second while the new form
is being opened! What would be the equivalent line of the Macro action,
Echo=No? Or what could solve this problem? Thanks

--- start of my code ---
Private Sub cbGoToFrm2_Click()
' Close frm1
DoCmd.Close acForm, "frm1", acSaveYes
' Open frm2
DoCmd.OpenForm "frm2"
' Maximize the form
DoCmd.Maximize
End Sub
--- end of my code ---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top