Hi all,
I am having some weird problem here. i got the following code, but for some reason, sometime it doesn't work and sometime it does. I was unable to find a pathern as to why it doesn't work sometime.
Here is the code:
This code is on the onchange event of the listbox, which is in a subform.
Any of you got an idea to fix this?
I am having some weird problem here. i got the following code, but for some reason, sometime it doesn't work and sometime it does. I was unable to find a pathern as to why it doesn't work sometime.
Here is the code:
Code:
Private Sub Itemno_Change()
On Error GoTo err_itemnoChange
Me.Desc1 = Me.Itemno.Column(1)
Me.Desc2 = Me.Itemno.Column(2)
Me.Eight = Me.Itemno.Column(5)
Me.Cat = Me.Itemno.Column(3)
Me.Avail = Me.Itemno.Column(4)
err_itemnoChange:
Exit Sub
End Sub
This code is on the onchange event of the listbox, which is in a subform.
Any of you got an idea to fix this?