fat controller
Slightly round the bend..
- Local time
- Today, 23:14
- Joined
- Apr 14, 2011
- Messages
- 758
I have a form that has an on current event where it checks the value of a few check boxes, and depending on the result it sets a label to visible or not - works just fine.
However, I have a second form that opens from this main form and when a user changes anything on this second form, it has a bearing on the aforementioned check boxes, which I would then like to have the relevant effect on the main form.
I have tried using the same code that I have in the on current event, in the on got focus event, but that doesn't work. I have tried getting the close event on the second form to refresh the main form (.refresh) - that doesn't work. Re-querying the main form sends it back to the first record (as expected), so that is no good either; the only way I can currently get it to work is to close and re-open the main form.
Is there a more elegant solution?
However, I have a second form that opens from this main form and when a user changes anything on this second form, it has a bearing on the aforementioned check boxes, which I would then like to have the relevant effect on the main form.
I have tried using the same code that I have in the on current event, in the on got focus event, but that doesn't work. I have tried getting the close event on the second form to refresh the main form (.refresh) - that doesn't work. Re-querying the main form sends it back to the first record (as expected), so that is no good either; the only way I can currently get it to work is to close and re-open the main form.
Is there a more elegant solution?