S
Slez via AccessMonster.com
I have a mainform with a subform with another subform (I'll refer to this as
subform2). When trying to add a new record to subform2, I get the error:
"Index or primary key cannot contain a Null value"
I have created this format numerous times before and believe I have all my
Link Child Fields and Link Master Fields references correct. The primary
keys in this case are [ProjectID] and [ProjectName], and you can clearly see
when I make those fields visible that they do not automatically fill with the
primary key values that are selected in either the subform or the mainform.
My previously created forms do this properly, and I appear to have all the
property settings in accordance with that. (Obviously with appropriate field
names referenced.)
My bottom line question is: When adding a new record, how do I get the
fields to take on the value of the related fields in the subform or mainform?
Any help is appreciated!
Slez
subform2). When trying to add a new record to subform2, I get the error:
"Index or primary key cannot contain a Null value"
I have created this format numerous times before and believe I have all my
Link Child Fields and Link Master Fields references correct. The primary
keys in this case are [ProjectID] and [ProjectName], and you can clearly see
when I make those fields visible that they do not automatically fill with the
primary key values that are selected in either the subform or the mainform.
My previously created forms do this properly, and I appear to have all the
property settings in accordance with that. (Obviously with appropriate field
names referenced.)
My bottom line question is: When adding a new record, how do I get the
fields to take on the value of the related fields in the subform or mainform?
Any help is appreciated!
Slez