Closeing a Switchboard when i open a from

  • Thread starter Thread starter Graeme Richardson
  • Start date 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.
 
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.
 
Back
Top