K
Kevin S.
I earlier asked how to make a listbox that shows all open forms. I completed
this successfully using code that just makes a value list. By the way, does
anyone know what the size limit for a listbox value list is?
After the list of open forms is loaded, there is a close all button.
However, the code only closes every other form. (must be run more than once
to close all forms). Please help!
-------
Dim frm As Form
For Each frm In Application.Forms
If IsFormLoaded(frm.Name) <> 0 And Not frm.Name = Me.Name Then
DoCmd.Close acForm, frm.Name
End If
Next frm
-------
Am I doing anything wrong?
Thanks for the help
-Kevin
this successfully using code that just makes a value list. By the way, does
anyone know what the size limit for a listbox value list is?
After the list of open forms is loaded, there is a close all button.
However, the code only closes every other form. (must be run more than once
to close all forms). Please help!
-------
Dim frm As Form
For Each frm In Application.Forms
If IsFormLoaded(frm.Name) <> 0 And Not frm.Name = Me.Name Then
DoCmd.Close acForm, frm.Name
End If
Next frm
-------
Am I doing anything wrong?
Thanks for the help
-Kevin