[ RESOLVED ]...Unloading Forms...
VB Code:
Private Sub cmdBack_Click()
frmMain.Show
Dim frm As Form
For Each frm In Forms
If frm <> frmMain Then
Unload frm
Set frm = Nothing
End If
Next frm
End Sub
What is wrong with this code...???
Gives compile error: Type mismatch
Hope some one can fix it...!!!
Cheers...
Arrr...Sod it! Goodbye Mr Hodgeheg...*sob*
Use:
VB Code:
If Not frm Is frmMain Then
That will do the trick as it's checking to see if frm is the same object as frmMain...simple. Try it, it will work...
Woka
Arrr...Sod it! Goodbye Mr Hodgeheg...*sob*
Use:
VB Code:
If Not frm Is frmMain Then
That will do the trick as it's checking to see if frm is the same object as frmMain...simple. Try it, it will work...
Woka