I have a form that has the focus and within this form but I need to determine if a particular form is also open. I have this code that is not quite working. When it executes it finds form name is true but the form is not open. Could someone provide some help. Thanks!

For Each frm In Forms
If frm.Name = "open_fi" Then
Set curfrm = Forms!open_fi!
frmstr = frm.Name
Exit Function
End If
Next frm