Hi all,
I have a subform on my main form. There is a button on the footer of my subform called cmdAdd. I use this button to open an unbound form form which i use to write data into the underlying table of the subform. This is the only object on the subform that can get focus. Everything else is either disabled, locked or invisible.
The current event of the main form disables this button based on the current record on the main form. The problem is that I can not move the focus away from this button so that it is disabled. I have the forms On-load event to move the focus to a button on the main form. Then it works, but when I navigate between record on the main form, and have to use this button on the sub-form, then it gets the focus again, and then main forms current event can't disable it. Is there an event procedure that I can use to move the focus from this button to something on the main form when I navigate between records. Maybe something like when the master field value changes or the parent record changes.
Thanks in advance.