BUGGY,

But I was looking for a code like this...

VB Code:
  1. Unload frmMain

and I search through whole code but can't find it obvously because the code was like this...

VB Code:
  1. Dim frm As Form
  2.    
  3.     For Each frm In Forms
  4.         Unload frm
  5.         Set frm = Nothing
  6.     Next frm

I learned a huge lesson today...listen to BUGGY......

Cheers...