close form on click event

  • Thread starter Thread starter carly
  • Start date Start date
C

carly

I am sort of new to the VBA language and I am stuck on
something. I created a button that on a form that when
clicked will return the user to the switchboard. I also
want the current form called "add new employee - Union
addresses" to close upon that same click. Is there
anyway that I can do this? Any help is appreciated, and
if it is an obvious answer, please clue me in! I am
confused. Here is the code that I have so far:

Private Sub cmdReturntoSwitchboard_Click()
DoCmd.OpenForm "frm Switchboard"
Exit_cmdReturntoSwitchboard_Click:
End Sub

Thanks
 
Back
Top