|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Syntax error in FROM clause. in c#.NET
Hi i'm trying to get access database fields but when i'm running appears the message:Syntax error in FROM clause.
Here is some of my code: if(chbEditora.Checked) { String strpath=Server.MapPath("bibli.mdb"); String myConnectionstr="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + strpath; String strsql="Select * from Livros where"+ "Livros.editora=" + " '"+txbEditL.Text+"' "; myConnection=new System.Data.OleDb.OleDbConnection(myConnectionstr) ; myConnection.Open(); cmd=new OleDbCommand(strsql,myConnection); OleDbDataReader DtReader = cmd.ExecuteReader(); dtgResult.DataSource = DtReader; dtgResult.DataBind(); DtReader.Close(); } If you please help me, I really need help quickly. Thanks!! |
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > Syntax error in FROM clause. in c#.NET |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|