Hi there im trying to display each combobox item in a messages box ,
This aint working.Code:Dim i As Long With cboUser For i = 0 To .ListCount msgsbox cboUser.ItemData(i) Next i End With
Hi there im trying to display each combobox item in a messages box ,
This aint working.Code:Dim i As Long With cboUser For i = 0 To .ListCount msgsbox cboUser.ItemData(i) Next i End With
Always helpful if you tell us the error message, or what exactly is going wrong. "ain't working" ...ain't helpful.
Offhand, it's MsgBox, not msgsbox.
so sory, it gives me Invalid use of null on the code
I have a Combobox that is populated from a table.Code:MsgBox cboUser.ItemData(i)
Then I wanted to show every item in this combobox to a MsgsBox
Can you kindly show me how to do it properly.
Im doing a loop to display each Item continously.
One slight modification, to eliminate the Invalid use of Null error:
Code:Dim i As Long With cboUser For i = 0 To .ListCount - 1 MsgBox cboUser.ItemData(i) Next i End With
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007
Thank you very much sir...