Hello again!
I am trying to get the value entered in a field in a main form entered into a corresponding field in a subform. So, for example on my main form I have a field "Phase" and on my subform I also have a field "Phase2". When the user updates the "phase" field in the main form, this value should be copied in all the "phase2" field of related records on the AfterUpdate event. (The user can then change the Phase 2 info if they need to, as sometimes this will not always be the same as the Phase on the main form)
I can get it to work for the first record in the sub form, but the other records dont change. my code is (at the moment ..)
Private Sub subphase_AfterUpdate()
Me![SBF_FILL]!phase2 = Me!phase
End Sub
but I am confused as to how to get Access to update all the records linked to the record in the main form to update. I am sure this is possible, I just dont know how.
I am very slowly learning VBA, but, it is slow!!
Many thanks for any comments!
Emma
I am trying to get the value entered in a field in a main form entered into a corresponding field in a subform. So, for example on my main form I have a field "Phase" and on my subform I also have a field "Phase2". When the user updates the "phase" field in the main form, this value should be copied in all the "phase2" field of related records on the AfterUpdate event. (The user can then change the Phase 2 info if they need to, as sometimes this will not always be the same as the Phase on the main form)
I can get it to work for the first record in the sub form, but the other records dont change. my code is (at the moment ..)
Private Sub subphase_AfterUpdate()
Me![SBF_FILL]!phase2 = Me!phase
End Sub
but I am confused as to how to get Access to update all the records linked to the record in the main form to update. I am sure this is possible, I just dont know how.
I am very slowly learning VBA, but, it is slow!!
Many thanks for any comments!
Emma