You can write the macro code to open and close the previous form. Then call it from the button click.
VB Code:
  1. 'Behind Main form:
  2. Option Compare Database
  3.  
  4. Private Sub cmdCustome_Click()
  5.     DoCmd.OpenForm "Customer", acNormal, "", "", , acNormal 'Show desired form
  6.     DoCmd.Close acForm, "Menu" 'Close Main form
  7. End Function
  8.  
  9. 'Behind Customer Form:
  10. Option Compare Database
  11.  
  12. Private Sub cmdBackNav_Click()
  13.     DoCmd.Close acForm, Me.Name 'Close current form
  14.     DoCmd.OpenForm "Main", acNormal 'Return to Main form
  15. End Sub