G
Guest
Hi,
I have my main form frm_bundlelog with a subform frm_bundledocs linked by
the BundleNo and Bundle# fields. I have a button btnupdate on my form that
when I click on it, it would update the AssignedToSub field on my subform
with the value of the AssignedTo field that is on the main form.
I have teh following code:
Private Sub btnupdate_Click()
On Error GoTo Err_btnupdate_Click
Forms!frm_bundlelog!AssignedTo = Forms!frm_bundledocs!AssignedToSub
Exit_btnupdate_Click:
Exit Sub
Err_btnupdate_Click:
MsgBox Err.Description
Resume Exit_btnupdate_Click
End Sub
This is not working. It is not updating the records in the subform and I
get an error stating that "Document Tracking System can't find the form
'frm_bundledocs' referred to in a macro expression or Visual Basic code.
any ideas why?
I have my main form frm_bundlelog with a subform frm_bundledocs linked by
the BundleNo and Bundle# fields. I have a button btnupdate on my form that
when I click on it, it would update the AssignedToSub field on my subform
with the value of the AssignedTo field that is on the main form.
I have teh following code:
Private Sub btnupdate_Click()
On Error GoTo Err_btnupdate_Click
Forms!frm_bundlelog!AssignedTo = Forms!frm_bundledocs!AssignedToSub
Exit_btnupdate_Click:
Exit Sub
Err_btnupdate_Click:
MsgBox Err.Description
Resume Exit_btnupdate_Click
End Sub
This is not working. It is not updating the records in the subform and I
get an error stating that "Document Tracking System can't find the form
'frm_bundledocs' referred to in a macro expression or Visual Basic code.
any ideas why?