One of 2 things may be happening.
1. The mainform does not have an updateable recordsource (or maybe not
bound
at all) or more likely:
2. There is no link between the main and subform.
Dirty means that enough information has been entered to allow records to
be
saved, and that you do not have your Warnings turned off in your code
somewhere without turning them back on.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
I'm not certain I understand what Dirty means, but when I enter data to
the
main form and move to the subform I guess the subform can't 'see' that
I
have
entered data into the main form. I say that because that is when I get
the
message "you cannot add or change a record because a related record is
required in table "tblDMIspections", which is the underlying table to
the
main form.
I am receivng another error box that may be related to the first
problem.
This occurs when I attempt to enter data into a field in the subform.
"You can't assign a value to this object"
*The object may be a control on a read-only form
*The object may be on a form this open in Design view
*The value may be too large for this field.
None of the above conditions are true. Any help is greatly
appreciated.
:
When the Current Record is Dirty, it *will* be saved before you can
move
the
focus to the SubForm.
ridgerunner wrote:
Is there a property on the main form that will make it update the
underlying
database before data entry is begun on the subform?
The main form data is on the one side of a relationship. The
subform
data is
on the many side. You must fill in all the required information on
the
one
[quoted text clipped - 7 lines]
do
I solve this?
--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.
Message posted via AccessMonster.com