I am getting "Runtime Error '424'. Object Required" when I try to execute the following code.
Command60 command button is on the form frmLabStatus. Column(6) contains the name of the form to be opened using this command button. Once that form is opened, a field's value on that form "cboTestID" needs to be set to Column(5) on the previous form "frmLabStatus".
Your help is highly appreciated!
Private Sub Command60_Click()
DoCmd.OpenForm Me.listProjects.Column(6)
Forms!frmLabStatus.listProjects.Column(6).cboTestID = Forms!frmLabStatus.listProjects.Column(5)
End Sub
Command60 command button is on the form frmLabStatus. Column(6) contains the name of the form to be opened using this command button. Once that form is opened, a field's value on that form "cboTestID" needs to be set to Column(5) on the previous form "frmLabStatus".
Your help is highly appreciated!
Private Sub Command60_Click()
DoCmd.OpenForm Me.listProjects.Column(6)
Forms!frmLabStatus.listProjects.Column(6).cboTestID = Forms!frmLabStatus.listProjects.Column(5)
End Sub