I moved your post to my CodeBank thread for the VB 6 version of my spellchecker.

In Access there is no QueryUnload event so you need to use the Unload event

VB Code:
  1. Private Sub Form_Unload(Cancel As Integer)
  2.  
  3. End Sub