我是VB Net的新手。我有两张桌子,。,。,即。,。,。学生记录和教师,他们都有课程领域。,。,。我只是想检查那个课程是否是其他表的课程。,。,
Dim con As New OleDbConnection
Dim dr As OleDbDataReader
Dim arrImage() As Byte
Dim myMS As New IO.MemoryStream
Dim cmd As New OleDbCommand
Dim strcourse As String
Dim strcourse1
Dim da As New OleDb.OleDbDataAdapter
con = New OleDbConnection(Get_Constring)
con.Open()
strcourse = "select Course from facultynew where FacultyID"
strcourse1 = "select Course from studentsrecords where IDNumber"
da = New OleDb.OleDbDataAdapter(strcourse, con)
da = New OleDb.OleDbDataAdapter(strcourse1, con)
strcourse=strcourse1