-
I have this code for the Combo item change:[vba]Private Sub Product_Change() 'Change Event for combo 'Products'
flag_artikal = False
'get the correct DataX object reference from your collection
Set dx = DataXCollection(Product.Text) ' Product.Text is a key(index)
PriceInput.Text = dx.PriceX
Color.List = dx.ColorX
Color.ListIndex = 0
Size.List = dx.SizeX
Size.ListIndex = 0
End Sub[/vba]
Actually the data input is not disabled, but as soon as i manually input some character in the combo (which is not recognized as the first character of some list item) i get (with the "Set dx ..." line yellow marked:
Run-time error '5':
Invalid procedure call or argument
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules