B
Brian
I've been at this way too long to have this problem, but here it is anyway:
Continuous form.
Combo box, column 1 bound to field in table that is the form's RecordSource.
Field is not part of PK in table.
RowSource is from another table.
Field is the many side of a one-to-many relationship. Integrity is enforced
with CascadeUpdate.
I want the contents to be optional but referential integrity-enforced when
populated. Furthermore, there are times when it needs to be cleared after
previously populated.
I must have forgotten or missed something obvious here.
When I populate the field, then try to nullify it (via VBA "Field1 = Null"
or manully via highlight & delete key), I get a 3162 error "You tried to
assign the Null value to a variable that is not a Variant data type."
I can open the table directly, populate the field, move to another field &
back, then delete the contents just fine. It just fails on the form.
I thought error 3162 was the error one gets when attempting to delete part
of a multi-field PK, but evidently not.
What's going on here?
Continuous form.
Combo box, column 1 bound to field in table that is the form's RecordSource.
Field is not part of PK in table.
RowSource is from another table.
Field is the many side of a one-to-many relationship. Integrity is enforced
with CascadeUpdate.
I want the contents to be optional but referential integrity-enforced when
populated. Furthermore, there are times when it needs to be cleared after
previously populated.
I must have forgotten or missed something obvious here.
When I populate the field, then try to nullify it (via VBA "Field1 = Null"
or manully via highlight & delete key), I get a 3162 error "You tried to
assign the Null value to a variable that is not a Variant data type."
I can open the table directly, populate the field, move to another field &
back, then delete the contents just fine. It just fails on the form.
I thought error 3162 was the error one gets when attempting to delete part
of a multi-field PK, but evidently not.
What's going on here?