I'm so close. . .
Private Sub Form_Close()
If Forms!Switchboard!frmAllRebatesDue.Visible = True Then
Forms!Switchboard!frmAllRebatesDue.Requery
End If
If Forms!frmVendorMain!frmVendorGen.Visible = True Then
Forms!frmVendorMain!frmVendorGen.Requery
End If
The second form won't requery. . .I know I should be able to do this, but I haven't been able to hack my way through it!
Is there some sort of "ThenIf" to pick up the second one? I've tried else, but that doesn't work if the first form is visible (it ends the sub at that point). Please help!
Private Sub Form_Close()
If Forms!Switchboard!frmAllRebatesDue.Visible = True Then
Forms!Switchboard!frmAllRebatesDue.Requery
End If
If Forms!frmVendorMain!frmVendorGen.Visible = True Then
Forms!frmVendorMain!frmVendorGen.Requery
End If
The second form won't requery. . .I know I should be able to do this, but I haven't been able to hack my way through it!
Is there some sort of "ThenIf" to pick up the second one? I've tried else, but that doesn't work if the first form is visible (it ends the sub at that point). Please help!