I am trying to have a user update several fields when a particular record is chosen. I set up a multi-column combo box for the record selection and it populates the other fields just fine when there is data in them. My problem is that if the field is blank I get a runtime error "cannot be zero length".
Also, the combo box shows all the columns associated with it when selecting the record. Is there a way to have it only display the record (DCN)?
I am using the following code:
Private Sub cboDCN_AfterUpdate()
Me.LookupIPA = Me![cboDCN].Column(1)
Me.CorrectMbrID = Me![cboDCN].Column(2)
Me.CorrectHPC = Me![cboDCN].Column(3)
Me.Action = Me![cboDCN].Column(4)
Me.RCode = Me![cboDCN].Column(5)
Me.RDate = Me![cboDCN].Column(6)
End Sub
Also, the combo box shows all the columns associated with it when selecting the record. Is there a way to have it only display the record (DCN)?
I am using the following code:
Private Sub cboDCN_AfterUpdate()
Me.LookupIPA = Me![cboDCN].Column(1)
Me.CorrectMbrID = Me![cboDCN].Column(2)
Me.CorrectHPC = Me![cboDCN].Column(3)
Me.Action = Me![cboDCN].Column(4)
Me.RCode = Me![cboDCN].Column(5)
Me.RDate = Me![cboDCN].Column(6)
End Sub