매우 이상합니다. 하나의 표가 작동하고 필요로하는 것을 보여 주며, 2 개는 표시되지 않으며 모두 같은 방식으로 작성되었습니다.DataGridView에 데이터가 표시되지 않습니다. VB.NET
Private Sub Form2_Shown(sender As Object, e As EventArgs) Handles Me.Shown
access.ExecQuery("SELECT emotion1,emotion2,emotion3,emotion4,emotion5, " & _
"situation1,situation2,situation3, " & _
"physical1,physical2,physical3,physical4,physical5 " & _
"FROM emotionlogdb ORDER BY id DESC;")
If Not String.IsNullOrEmpty(access.exception) Then
MsgBox(access.exception) : Exit Sub
End If
DataGridView1.DataSource = access.DBDT
End Sub
하지 않으며 두 코드 :
Private Sub Form5_Shown(sender As Object, e As EventArgs) Handles Me.Shown
access.ExecQuery("SELECT journal FROM journalDB ORDER BY id DESC")
If Not String.IsNullOrEmpty(access.exception) Then
MsgBox(access.exception) : Exit Sub
End If
DataGridView1.DataSource = access.DBDT
End Sub
그리고이 : 내가 잘못을
Private Sub Form6_Shown(sender As Object, e As EventArgs) Handles MyBase.Load
Dim sit As Integer = Alg.sitMode
Dim em As Integer = Alg.emMode
Access.ExecQuery("SELECT EmPlusSitMemo FROM TrendsDB WHERE EmotionID1= " & em & "AND SitID1= " & sit & ";")
If Not String.IsNullOrEmpty(Access.exception) Then
MsgBox(Access.exception) : Exit Sub
End If
DataGridView1.DataSource = Access.DBDT
End Sub
를하고있는 중이 야 어떻게 작동
코드? 당신이 시도 할 필요가 무엇