B
Barry
I have a main form with a combo box, and a subform which is linked to the
main form combo box, as a Child link. I have already synchronized the form
to the combo box, through a "SetValue" macro. I have an identical field in
both forms, based on a lookup table. I would like to limit the choice for
selection of this field in the subform (in datasheet view) based on the
current selected record in the main form. This field is also linked in the
query as a one-to-many join (the subform being the many portion, as it's
purpose is to write multiple entries to a particular table). Any help
greatly appreciated.
Here is what I attempted:
Created a validation rule (below) on the field in the subform to be equal to
the value in the combo box (or Null).
=[Forms]![frmWellMaintenance]![Combo34]
Now the problem is when entering data in the matching field in the subform
it displays in the datasheet, but when exiting the form it recognizes the
value as null.
Another option may be a VBA script to copy the visible value from the combo
box to the subform entry for that field.
Any help?
main form combo box, as a Child link. I have already synchronized the form
to the combo box, through a "SetValue" macro. I have an identical field in
both forms, based on a lookup table. I would like to limit the choice for
selection of this field in the subform (in datasheet view) based on the
current selected record in the main form. This field is also linked in the
query as a one-to-many join (the subform being the many portion, as it's
purpose is to write multiple entries to a particular table). Any help
greatly appreciated.
Here is what I attempted:
Created a validation rule (below) on the field in the subform to be equal to
the value in the combo box (or Null).
=[Forms]![frmWellMaintenance]![Combo34]
Now the problem is when entering data in the matching field in the subform
it displays in the datasheet, but when exiting the form it recognizes the
value as null.
Another option may be a VBA script to copy the visible value from the combo
box to the subform entry for that field.
Any help?