Hi
I have a main form with values in subforms which I need to update other subforms by means of a click. The following code works fine with SubjectID but NOT UnitID.
there are also no error messages, just nothing happens.
Can anyone tell me if there is something wrong with the code?
Option Compare Database
Private Sub UnitDescription_Click()
Forms!frmAddComp!frmVETUnits!frmCompetency.Form!SubjectID = Forms!frmAddComp!frmVETUnits!SubjectID
Forms!frmAddComp!frmVETUnits!frmCompetency.Form!UnitID = Forms!frmAddComp!frmVETUnits!UnitID
End Sub
Kind regards
Tanya
I have a main form with values in subforms which I need to update other subforms by means of a click. The following code works fine with SubjectID but NOT UnitID.
there are also no error messages, just nothing happens.
Can anyone tell me if there is something wrong with the code?
Option Compare Database
Private Sub UnitDescription_Click()
Forms!frmAddComp!frmVETUnits!frmCompetency.Form!SubjectID = Forms!frmAddComp!frmVETUnits!SubjectID
Forms!frmAddComp!frmVETUnits!frmCompetency.Form!UnitID = Forms!frmAddComp!frmVETUnits!UnitID
End Sub
Kind regards
Tanya