Hi all,
I'm working on a database for a company where there are two styles of paychecks based on jobs done during pay periods. Basically, the user opens a form, and picks the paydate, then the user opens either of the paycheck reports (both based on the same query). The underlying query has the restriction WHERE [PayDate] = Forms!PayDate_Selection![cbo_PayDate] (rough idea). Anyway, my problem is this: I can't figure out how to refresh these paycheck reports when the combo box selection is changed. I thought it would be simple like, as an OnChange, like Queries!PayChecks.Requery or for the individual reports, like Reports!DriversPay.Requery. Either way, the debugger tells me that I spelled the report/query wrong, or it doesn't exist. Both are untrue. Is there a simple way to do this?
Thanks,
6ix
I'm working on a database for a company where there are two styles of paychecks based on jobs done during pay periods. Basically, the user opens a form, and picks the paydate, then the user opens either of the paycheck reports (both based on the same query). The underlying query has the restriction WHERE [PayDate] = Forms!PayDate_Selection![cbo_PayDate] (rough idea). Anyway, my problem is this: I can't figure out how to refresh these paycheck reports when the combo box selection is changed. I thought it would be simple like, as an OnChange, like Queries!PayChecks.Requery or for the individual reports, like Reports!DriversPay.Requery. Either way, the debugger tells me that I spelled the report/query wrong, or it doesn't exist. Both are untrue. Is there a simple way to do this?
Thanks,
6ix