Hi everyone,
I'm trying to populate a combo box with a dataset, this sort of works, but everything is just appearing on the same line. I think this answer might be to put the dataset into an array, then put the array into the combo box.
...problem is, I'm not sure how to do this! My code thus far is,
Dim usernameList As Array
'Retrieve usernames where player has available status
GetFilteredData()
'loop to display each record in the DataSet
For i = 1 To CountRecords()
'Append combobox with each player's username
ComboBox1.Text &= GetDsValue(i, 2) & " " & vbCrLf
For inserting the dataset values into the array would I use:
usernameList = GetDsValue(i, 2) & " " & vbCrLf ?
Thanks in advance!
I'm trying to populate a combo box with a dataset, this sort of works, but everything is just appearing on the same line. I think this answer might be to put the dataset into an array, then put the array into the combo box.
...problem is, I'm not sure how to do this! My code thus far is,
Dim usernameList As Array
'Retrieve usernames where player has available status
GetFilteredData()
'loop to display each record in the DataSet
For i = 1 To CountRecords()
'Append combobox with each player's username
ComboBox1.Text &= GetDsValue(i, 2) & " " & vbCrLf
For inserting the dataset values into the array would I use:
usernameList = GetDsValue(i, 2) & " " & vbCrLf ?
Thanks in advance!