Click here to Skip to main content
16,020,990 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
AM using the following line of code:
VB
daStreets.SelectCommand = New MySqlCommand(qryStreets, conn)           
Dim sd As MySqlCommandBuilder = New MySqlCommandBuilder(daStreets)


HO do i check if any data was returned from the DB:

UPDATE:
OP resolved the issue himself. Posted as one of the answer.
Posted
Updated 2-Jun-11 5:06am
v2

1 solution

SOlved:
VB
If dsStreets.Tables("tbl_streets").Rows.Count > 0 Then
                 With cmbStreet
                     .DataSource = dsStreets.Tables("tbl_streets")
                     .DisplayMember = "streetroad"
                     .ValueMember = "id"
                     .SelectedIndex = 0
                 End With
             End If
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900