try this:
on error resume next
dim frm as form
for each frm in forms
    unload frm
next frm
set frm=nothing