我要展示我的選擇syntac到拉布勒但我的代碼沒有工作這隻能說明1 actualy數據從SQL數據是11vb.net如何顯示在拉布勒
Try
If IsNothing(ds.Tables("kkpsurabaya")) = False Then
ds.Tables("kkpsurabaya").Rows.Clear()
End If
query = "SELECT count(total_telat) FROM kkpsurabaya WHERE LATE <=30 And Late >=1"
da = New SqlDataAdapter(query, conn)
da.Fill(ds, "kkpsurabaya")
Label7.Text = da.Fill(ds, "kkpsurabaya")
da.Dispose()
conn.Close()
Catch ex As Exception
FatalErrorOccured(ex)
End Try
是否有2個字段:「LATE」和「Late」,或只是錯字? – Grace
只是錯字,但在sql –
工作'Label7.Text'會顯示返回的行數?如果你想在標籤中顯示sql查詢,然後使用'Label9.Text = query' – Fabio