J
Jen S
I'm in process of converting someone else's database from Access 97 to
Access 2003. Some of the code is kludgy, but I don't have a lot of time to
accomplish this, so I'm trying to avoid major redesigns of form
functionality if at all possible. But I've just run into my first weird
thing that works fine in 97 and fails in 2003. Any suggestions would be
appreciated!
I have a Parent/Subform setup. There is code in the Subform_Enter event on
the parent that does a quick update of the parent form and does a
"RunCommand acCmdSaveRecord". In Access97, this saved the parent record,
ensuring that some vital referential integrity info. was in place when the
subform went to save its own data.
In Access 2003, the record is not updating...just staying dirty. My best
guess is that focus has already shifted to the subform when I call the
runcommand, and so it's "saving" the subform record (which doesn't exist
yet) instead of the parent.
Is there some other way to force the Parent form to save from within a
subform?
TIA!
Jen
Access 2003. Some of the code is kludgy, but I don't have a lot of time to
accomplish this, so I'm trying to avoid major redesigns of form
functionality if at all possible. But I've just run into my first weird
thing that works fine in 97 and fails in 2003. Any suggestions would be
appreciated!
I have a Parent/Subform setup. There is code in the Subform_Enter event on
the parent that does a quick update of the parent form and does a
"RunCommand acCmdSaveRecord". In Access97, this saved the parent record,
ensuring that some vital referential integrity info. was in place when the
subform went to save its own data.
In Access 2003, the record is not updating...just staying dirty. My best
guess is that focus has already shifted to the subform when I call the
runcommand, and so it's "saving" the subform record (which doesn't exist
yet) instead of the parent.
Is there some other way to force the Parent form to save from within a
subform?
TIA!
Jen