Public Sub callSetFrmProperty()
'Routine that calls the set property routine
Dim sFrmName As String
Dim blnPopUp As Boolean
sFrmName = "frmPopOrNot"
'do your table check, returns blnPopUp true or false
'call routine to set property
setFrmProperty blnPopUp, sFrmName
End Sub
Public Sub setFrmProperty(ByVal blnPopUp As Boolean, _
ByVal sFrmName As String)
Dim oFrm As Access.Form
'open form in design mode
DoCmd.OpenForm sFrmName, acDesign
Set oFrm = Forms(sFrmName)
'set properties
With oFrm
.PopUp = blnPopUp
End With
'open form in normal mode
Set oFrm = Nothing
DoCmd.OpenForm sFrmName, acNormal
End Sub