Greetings,
It would seem that this topic has been discussed at some length, but I
was unable to discern whether there was a clear cut solution to resolve
and/or otherwise workaround the issue.
Briefly, I have some code which queries the database from a subform,
and enables or disables a contol in the parent form, depending upon the
results I receive.
This seems to be working for post-insert and post-update events.
However, when I connect the code with current and post-delete events,
then I begin receiving the infamous "Invalid use of Null".
Without going into a lot of detail about the code, I am 99.9% confident
the code is not to blame. As I stated, it works without error for
certain events, but just not others. So that begs the question, is
there a more appropriate event I could be handling? I am hoping ther
answer is yes.
The bottom line for me is to detect any change in the state of the
subform's recordset (insert, update, and delete) and report that back
to the parent form in the form of enabled or disabled control Any
insight in this area would be greatly appreciated.
Regards,
Michael