如何平衡两个领域

时间:2013-10-02 12:28:14

标签: vb.net ms-access

我是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

1 个答案:

答案 0 :(得分:2)

您可能正在寻找INNER JOIN