J
jlute
I've placed a button on a tab control to requery the subform in the
tab:
Private Sub cmdrefreshassocs_Click()
On Error GoTo Err_cmdrefreshassocs_Click
Me.sfrmPKProfilesAssociations.Requery
Exit_cmdrefreshassocs_Click:
Exit Sub
Err_cmdrefreshassocs_Click:
MsgBox Err.Description
Resume Exit_cmdrefreshassocs_Click
End Sub
The subform is used in multiple main forms therefore it can be open
multiple times simultaneously. Here's what's going on:
The subform queries records in the main form's underlying table. With
the subform open in main forms "A" and "B" I will create a record in
"A" then go to form "B" and click the requery button. It will do
what's expected HOWEVER when I go back to form "A" and repeat these
steps the button will NOT requery the subform.
I've tried this several times and the button will only requery the
subform ONCE.
Does this make sense? It seems that I can only consistently requery
the subform from the Records > Refresh tool bar function.
Any help you have is greatly appreciated - thanks!
tab:
Private Sub cmdrefreshassocs_Click()
On Error GoTo Err_cmdrefreshassocs_Click
Me.sfrmPKProfilesAssociations.Requery
Exit_cmdrefreshassocs_Click:
Exit Sub
Err_cmdrefreshassocs_Click:
MsgBox Err.Description
Resume Exit_cmdrefreshassocs_Click
End Sub
The subform is used in multiple main forms therefore it can be open
multiple times simultaneously. Here's what's going on:
The subform queries records in the main form's underlying table. With
the subform open in main forms "A" and "B" I will create a record in
"A" then go to form "B" and click the requery button. It will do
what's expected HOWEVER when I go back to form "A" and repeat these
steps the button will NOT requery the subform.
I've tried this several times and the button will only requery the
subform ONCE.
Does this make sense? It seems that I can only consistently requery
the subform from the Records > Refresh tool bar function.
Any help you have is greatly appreciated - thanks!