Test for change in a subform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Folks,

I have a subform on a form - how can I test for data change in the subform
to trigger an event on the form? I tried running a macro from the
OnDataChange event but it doesn't seem to realize that the data has been
changed in the subform. Actually, I have tried all kinds of On events.

You help is appreciated.

Thanks
 
The subform is its own form, with its own events. Thus to trap for
something in the subform, you would need to put the code in the subforms
module, not the main form's.
 
Bonnie:

How are the changes made? User updating fields on the subform? Are you
trying events on the subform itself, or on the subform object within the
primary form?

Sharkbyte
 
I want to update a field on the main form (put in the date we are receiving
materials) but only after I am sure they have updated the subform (so I don't
update the main form when someone just opened the form but didn't log in
anything. So I was trying to use and event like OnChange or DataChange to
fire a macro to change the field on the master form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top