A
aeschylus
I have a main form, for person.
I have two subforms.
Subform1 is for person_to_allergy.
Subform2 is for person_to_preference.
I have tables, person, allerge, preference, person_to_allergy, and
person_to_preference; so I'm treating personreference as M:M
(many-to-many), and I'm treating person:allergy as M:M.
#1)
In the person_to_allergy subform, when I open a person who currently
has one allergy (one row in the person_to_allergy table), I see one
row filled in, and the last row blank, in datasheet mode. This blank
row is where I would add more data.
BUT
#2)
In the person_to_preference subform, when I open a person who
currently has one preference (one row in the person_to_preference
table), I see one row filled in, and the last row has the current
person's name filled in (in the person_id field--it uses Lookup to
name), but the rest is blank. This semi-blank row is where I would add
more data.
I like the first behavior better (entire row blank), because as soon
as I start typing in the new row in the person_to_allergy subform, it
anyway fills in that first field (person_id, using name as lookup). I
just think the all blank row looks prettier than the partly blank row
of the second case.
I cannot figure out what controls whether or not it fills in the key
field of a subform in that last/extra/addition row?
I looked around the Form/settings of those two subforms, but didn't
see any obvious difference.
I have two subforms.
Subform1 is for person_to_allergy.
Subform2 is for person_to_preference.
I have tables, person, allerge, preference, person_to_allergy, and
person_to_preference; so I'm treating personreference as M:M
(many-to-many), and I'm treating person:allergy as M:M.
#1)
In the person_to_allergy subform, when I open a person who currently
has one allergy (one row in the person_to_allergy table), I see one
row filled in, and the last row blank, in datasheet mode. This blank
row is where I would add more data.
BUT
#2)
In the person_to_preference subform, when I open a person who
currently has one preference (one row in the person_to_preference
table), I see one row filled in, and the last row has the current
person's name filled in (in the person_id field--it uses Lookup to
name), but the rest is blank. This semi-blank row is where I would add
more data.
I like the first behavior better (entire row blank), because as soon
as I start typing in the new row in the person_to_allergy subform, it
anyway fills in that first field (person_id, using name as lookup). I
just think the all blank row looks prettier than the partly blank row
of the second case.
I cannot figure out what controls whether or not it fills in the key
field of a subform in that last/extra/addition row?
I looked around the Form/settings of those two subforms, but didn't
see any obvious difference.