Maybe I should subtitle this "that is darn near impossible to track down."
Please allow me to explain. I have an AutoExec that triggers a form to open (still a problem even if AutoExec does not run). Upon opening, the ****** event is triggered and then I am asked for parameters for two comboboxes which should have been populated by this point by
However, they are obviously not being populated correctly or else I would have not been prompted for parameters. If I cancel or continue without entering anything I get an error, the form loads, albeit blank in several areas where the appropriate query did not run.
Here's where it gets weirder...
It will continue to do this no matter how many times I close the form or put it into design mode and then reopen it.
However, if I open VBA, the problem completely disappears and the form opens as it should with all queries working correctly. Even if I do not alter any of the VBA at all, the mere fact of opening the VBA window solves the problem.
Think about it, get back to me. Thanks!
Please allow me to explain. I have an AutoExec that triggers a form to open (still a problem even if AutoExec does not run). Upon opening, the ****** event is triggered and then I am asked for parameters for two comboboxes which should have been populated by this point by
Code:
Me.cmbYear.Value = Year(Date)
Me.cmbChooseMonth.Value = Month(Date)
However, they are obviously not being populated correctly or else I would have not been prompted for parameters. If I cancel or continue without entering anything I get an error, the form loads, albeit blank in several areas where the appropriate query did not run.
Here's where it gets weirder...
It will continue to do this no matter how many times I close the form or put it into design mode and then reopen it.
However, if I open VBA, the problem completely disappears and the form opens as it should with all queries working correctly. Even if I do not alter any of the VBA at all, the mere fact of opening the VBA window solves the problem.
Think about it, get back to me. Thanks!