So I have one combo box at top of form that controls job number
for each job there may be multiple reports, a combo box below that is used to select report, then a button is pushed to open that report for editing.
I have other databases where this works fine. The report combo box contains the following SQL in the row source:
SELECT DISTINCT EXAMINATIONREPORT.ReportNo FROM EXAMINATIONREPORT WHERE examinationreport.jobnumber = jobnumber;
In the first combo box there is the following code:
Code:
DBEngine.Idle dbRefreshCache
Form_MPI!ReportController.Requery
Me.ReportController.RowSource = Me.ReportController.RowSource
Me.ReportController.Requery
Me.Requery
Me!ReportController.Requery
Set MPIreports = Forms!MPI!ReportController
MPIreports.Requery
Me.Refresh
Me.Repaint
So as you can see, up against the wall on this one. It just WILL NOT requery itself, since each job number has different numbers of reports or no reports at all, this combo box will change each time the job changes. The form is called MPI, but in its history it may have been renamed at one point, don't remember. I don't get why this method of selecting reports works on other forms but not this one. Thanks for any help.