Hi,
just lose the "Set" keyword... VB IDE should do that for you automatically. Note however, that a new form is already instatiated in the first statement (Dim frmN as New Form1) so there's no need for the next one.
If this doesn't solve your problem, please give some more details on what's not working with your code.
Andrej