Any help on where the ',' error is would be greatly appreciated!
Here is my VB code:
Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration
Imports System.ArgumentException
Partial Class MeetingAdd
Inherits System.Web.UI.Page
Public Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
Dim strConnection As String = ConfigurationManager.ConnectionStrings("ServiceLine_CommitteeConnectionString").ConnectionString
Dim con As New SqlConnection(strConnection)
Dim cmd As New SqlCommand("insert into ServiceLine_Committee.DBO.tblVotings(Meeting_ID, Committee_ID, Member_Name) , " +
"SELECT C.ID, M.ID, CM.FULL_NAME FROM ServiceLine_Committee.DBO.tblCommitteeName C, " +
"ServiceLine_Committee.DBO.tblMeetings M, ServiceLine_Committee.DBO.tblCommitteeMembers CM " +
"WHERE M.ContractCategory = C.Contract_Category, " +
"AND M.Committee = C.Committee_Name, " +
"AND CM.Committee = M.Committee", con)
cmd.Connection = con
cmd.CommandType = CommandType.Text
con.Open()
Dim result As Integer = cmd.ExecuteNonQuery()
con.Close()
End Sub
End Class
Please help. This is very frustrating.