Folks,
please help.
I need a vb.net code to select cells from a mysql db. i have this so far which kind of works but it returns the whole column of a or b etc but i need only the 5 cells for each result. so for large, upto 4, north i would have
ID 7
thrist 6
panch 5
manchot 5
idly 4
this is probably so unclear but if anyone can help it would be much appreciated!
Using conn As New MySqlConnection(myConnectionString)
Dim sqllayer As String = "SELECT Mid(id, 2, 2) FROM sheet1;"
Dim dalayer As New MySqlDataAdapter(sqllayer, conn)
Dim dslayer As New DataTable
dalayer.Fill(dslayer)
If dslayer.Rows.Count > 0 Then
nrlayer = dslayer.Rows(0)(0).ToString()
Else
End If
End Using
Select Case Size
case large
select case area
Case "south"
Select Case count
Case < 5
Select Case area
Case "south"
Select Case letter
Case 1
Return "a"
Case 2
Return "b"
Case 3
Return "c"
Case 4
Return "c"
Case 5
Return "d"
Case 6
Return "e"
Case 7
Return "f"
Case 8
Return "g"
Case 9
Return "h"
Case 10
Return "i"
End Select
End Select
End Select
Case "small cell"
End Select