Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 14th, 2005, 05:41 PM
_drinker_ _drinker_ is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 3 _drinker_ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 53 sec
Reputation Power: 0
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!!

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Syntax error in FROM clause. in c#.NET


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway