Closeing a Switchboard when i open a from

  • Thread starter Graeme Richardson
  • Start date
G

Graeme Richardson

Hi, your statement is incomplete.

You need to include an object type (in this case it's a form) for MS Access
to execute this statement.

DoCmd.Close acForm, "Switchboard", acSaveNo

HTH, Graeme.
 
O

Oldtimeplayer

hi,

I am tiring to close the switchboard when I open a form. in the event (on
open) I put this code

Private Sub Form_Open(Cancel As Integer)
DoCmd.Close , "Switchboard", acSaveNo
End Sub

but it dose not work can you help.
 

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