Type mismatch error 13 on combobox

akjim62

Registered User.
Local time
Today, 13:52
Joined
Apr 18, 2014
Messages
16
Hi,

I use this code on combo boxes on many different forms, but on this particular form, I keep getting 'Run-time error 13' on "Me.WIDTH = Me.PRODUCT_ID_COMBO.Column(4)" if the column has no data, and also, if it does have data, it will not insert it into the form like all the others do. The datatypes for WIDTH and LENGTH are the same in the table and the form. I'm stumped.

Private Sub PRODUCT_ID_COMBO_AfterUpdate()
Me.QTY.Locked = False
Me.PRODUCT = Me.PRODUCT_ID_COMBO.Column(0)
Me.PART_NUM = Me.PRODUCT_ID_COMBO.Column(1)
Me.COST_PER_SF = Me.PRODUCT_ID_COMBO.Column(2)
Me.PRICE = Me.PRODUCT_ID_COMBO.Column(3)
Me.WIDTH = Me.PRODUCT_ID_COMBO.Column(4)
Me.LENGTH = Me.PRODUCT_ID_COMBO.Column(5)
Me.WEIGHT = Me.PRODUCT_ID_COMBO.Column(6)
End Sub

Thanks in advance for any help.
 

Attachments

  • Clipboard01.jpg
    Clipboard01.jpg
    58.7 KB · Views: 110
Has the combo box become unbound or something?
 
It is still bound to the underlying query.
 

Users who are viewing this thread

Back
Top Bottom