I use access to gather statistics for football games.
Let's suppose the home team scores a touchdown. The form that was used to gather the play by play information (frmOffense) then opens another form (frmScoring) to store what type of score, how long, the time, who, etc.
frmScoring also has a series of list boxes that show the score for each team by quarter and the total score (a box score).
Each list box has a query as its rowsource, that adds the scores for each team for that quarter.
The problem I have is that when frmScoring is opened, the new score is not updated in the listbox. If I close the form and re-open it the score appears (I assume the listbox runs the query again).
I added a Refresh command button that does the trick, but I would like the list boxes to "requery" when I open the form.
I have tried alot of different ways to get this to work without the Refresh command button, most of them in the OnOpen part of the frmScoring (using VB and the requery command). Any ideas?
Thanks.
Let's suppose the home team scores a touchdown. The form that was used to gather the play by play information (frmOffense) then opens another form (frmScoring) to store what type of score, how long, the time, who, etc.
frmScoring also has a series of list boxes that show the score for each team by quarter and the total score (a box score).
Each list box has a query as its rowsource, that adds the scores for each team for that quarter.
The problem I have is that when frmScoring is opened, the new score is not updated in the listbox. If I close the form and re-open it the score appears (I assume the listbox runs the query again).
I added a Refresh command button that does the trick, but I would like the list boxes to "requery" when I open the form.
I have tried alot of different ways to get this to work without the Refresh command button, most of them in the OnOpen part of the frmScoring (using VB and the requery command). Any ideas?
Thanks.