myConnection.Open();
SQLiteCommand myCommand = new SQLiteCommand(myConnection);
myCommand.CommandText = "Insert Into Albums (Artist,AlbumName,Year,CD,Cass,Vinyl,R2R,8Track,Genre) " +
"Values('" + txt_artistName.Text + "','" + txt_albumTitle.Text + "','" + txt_year.Text + "','" +
radbtnCD.Select + "','" + radbtnCass.Select + "','" + radbtnVinyl.Select + "','" +
radbtnRtoR.Select + "','" + radbtn8Trk.Select + "','" + combx_genre.Select + "')";
This gives the following error:
Operator '+' cannot be applied to operands of type 'string' and 'method group'. The error goes away if I remove all the components but the text. Can someone point me in the correct direction on how to mix the controls and submit them to the same database record? Thanks in advance.