CanadianAccessUser
Registered User.
- Local time
- Today, 19:14
- Joined
- Feb 7, 2014
- Messages
- 114
Hi,
My code:
Is supposed to take the agent from cboAgent and use it in the query criteria for a subform and subreport to show the info for the selected agent. When I choose the agent, cboAgent goes blank. I then choose the agent again and it will requery the subform and subreport properly.
Main Form: NavPage
Subform in NavigationSubform control: frmTermAgent
Subform in frmTermAgent subform control: frmTermAgentForm subform
Subreport in rptAgentsTerm control: rptAgentsTermSubreport
Is there a step I may have missed that would cause this to only work on the second attempt?
My code:
Code:
Private Sub cboAgent_AfterUpdate()
Forms("NavPage").Controls("NavigationSubform").Form.Controls("frmTermAgent").Requery
Forms("NavPage").Contkrols("NavigationSubform").Form.Controls("rptAgentsTerm").Requery
End Sub
Is supposed to take the agent from cboAgent and use it in the query criteria for a subform and subreport to show the info for the selected agent. When I choose the agent, cboAgent goes blank. I then choose the agent again and it will requery the subform and subreport properly.
Main Form: NavPage
Subform in NavigationSubform control: frmTermAgent
Subform in frmTermAgent subform control: frmTermAgentForm subform
Subreport in rptAgentsTerm control: rptAgentsTermSubreport
Is there a step I may have missed that would cause this to only work on the second attempt?