W
Walter
I am opening a form(subform) from a command button on
another form. The button's code is:
DoCmd.OpenForm "frmPlantingDetails", , , "PlantingID =" &
Me.PlantingID
The form opens but the PlantingID field remains blank.
The filter property on the data tab of the form's property
sheet shows PlantingID = 13(the PlantingID of the record
the form was opened from. When I enter data and try to
save it I get an error msg "You cannot add or change a
record because a related record is required in
tblPlantings". I have checked the relationship between
the two tables. Could there be a problem with Access
because I was having problems with two combo boxes not
working? I checked everything several times comparing to
ones that were working and could find nothing wrong. I
finaly deleted the boxes from the form and added them back
set up the same way they were and now they work fine.
Thanks,
Walter
another form. The button's code is:
DoCmd.OpenForm "frmPlantingDetails", , , "PlantingID =" &
Me.PlantingID
The form opens but the PlantingID field remains blank.
The filter property on the data tab of the form's property
sheet shows PlantingID = 13(the PlantingID of the record
the form was opened from. When I enter data and try to
save it I get an error msg "You cannot add or change a
record because a related record is required in
tblPlantings". I have checked the relationship between
the two tables. Could there be a problem with Access
because I was having problems with two combo boxes not
working? I checked everything several times comparing to
ones that were working and could find nothing wrong. I
finaly deleted the boxes from the form and added them back
set up the same way they were and now they work fine.
Thanks,
Walter