Populate subform from combo box (1 Viewer)

statsman

Active member
Local time
Today, 15:13
Joined
Aug 22, 2004
Messages
2,088
I retired a few years back and I have gotten away from Access I'm still using Access 07.
I am constructing a sports league database. I have a form which will allow the operator to correct any mistakes in the data entry.
It consists of a main form titled FrmTeamCorrect. In this form there is a combo box to select the team.
The subform presents the data to be corrected. It is opened using a query with [Forms]![FrmTeamCorrect]![Combo1] in the TeamName field.
The query works when I run it and enter the TeamName manuallu, but when the subform is added to the main form and a team is selected in the Combo box, nothing happens in the subform.
Unless you click on Design View and then back to Form View. Then the team data you selected in the combo box is displayed.
I believe that I'm just out of practice, but any assistance will be gratefully accepted.
:banghead:
 

isladogs

MVP / VIP
Local time
Today, 20:13
Joined
Jan 14, 2017
Messages
18,219
Try adding the line Me.Requery in the combo after update event
 

theDBguy

I’m here to help
Staff member
Local time
Today, 12:13
Joined
Oct 29, 2018
Messages
21,473
Hi. Just curious, what’s on the main form besides the combobox? Is the main form bound? If so, are the main and subform linked to each other?
 

statsman

Active member
Local time
Today, 15:13
Joined
Aug 22, 2004
Messages
2,088
The only thing on the main form is the combo box.
No links at this time, but that may change as I screw around with it.
The subform is linked to the query.
 

Users who are viewing this thread

Top Bottom