Dim BegDB As String 'Unmodified text to the database BegDB = Begaran.Text && multi-line textbox from aspx page 'Create a data connection and insert the data into DB: ceramicsweb.dbc - Table: beredn_log '-------------------------------------------------------------------------------------------- Dim conCeramicsWeb As OleDbConnection Dim strInsert As String Dim cmdInsert As OleDbCommand 'Connection to FoxPro conCeramicsWeb = New OleDbConnection("Provider=VFPOLEDB.1;Data Source=D:\Intranet\CeramicsWeb\data\ceramicsweb.dbc") 'Insert string strInsert = "Insert Into beredn_log (case_type, artnr, departm, requests, req_by, comp_name) Values ('ablad', '" & ArtikelNr.Text & "', '" & AvdelningsID.Text & "', '" & BegDB & "', '" & Namn.Text & "', '" & hostn & "')" 'Constructor for the connection and insert string cmdInsert = New OleDbCommand(strInsert, conCeramicsWeb) 'Open database run the query and then close the database again conCeramicsWeb.Open() cmdInsert.ExecuteScalar() && generates error Command contains unrecognized phrase/keyword conCeramicsWeb.Close()