Hello, everybody.
I am trying to make this simple code to pass actual value to the command parameter. Instead, all I am getting in the table is Null.
CorpConn = New MySqlConnection(MySQLConnectStr)
SQL = "INSERT INTO Log_Staff_LoginTime" + _
" (CallName) VALUES(@CallName);"
WrkCmd = New MySqlCommand(SQL, CorpConn)
WrkCmd.Parameters.AddWithValue("@CallName", "John")
CorpConn.Open()
WrkCmd.ExecuteNonQuery()
CorpConn.Close()
Even if my life depended on it, I can't see what I am doing wrong here. Please help!!!
Larry
I am trying to make this simple code to pass actual value to the command parameter. Instead, all I am getting in the table is Null.
CorpConn = New MySqlConnection(MySQLConnectStr)
SQL = "INSERT INTO Log_Staff_LoginTime" + _
" (CallName) VALUES(@CallName);"
WrkCmd = New MySqlCommand(SQL, CorpConn)
WrkCmd.Parameters.AddWithValue("@CallName", "John")
CorpConn.Open()
WrkCmd.ExecuteNonQuery()
CorpConn.Close()
Even if my life depended on it, I can't see what I am doing wrong here. Please help!!!
Larry