Click here to Skip to main content
15,916,180 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
Christian Graus30-Nov-08 16:34
protectorChristian Graus30-Nov-08 16:34 
AnswerRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
Christian Graus30-Nov-08 16:50
protectorChristian Graus30-Nov-08 16:50 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
thuyphuongid30-Nov-08 16:56
thuyphuongid30-Nov-08 16:56 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
Christian Graus30-Nov-08 16:58
protectorChristian Graus30-Nov-08 16:58 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
dan!sh 30-Nov-08 17:02
professional dan!sh 30-Nov-08 17:02 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
Christian Graus30-Nov-08 17:09
protectorChristian Graus30-Nov-08 17:09 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
Paul Conrad30-Nov-08 17:27
professionalPaul Conrad30-Nov-08 17:27 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
thuyphuongid30-Nov-08 17:12
thuyphuongid30-Nov-08 17:12 
v: express variable of method
l: local in method.
vStrSQL = "select * from User where user = 'aaa' and passwd = 'bb';
I tested vStrSQL on MS Access. It is true.

It used folow:
vStrSQL = "select * from User where User = '" + txtUser.Text + "' and Passwd = '" + txtPassword.Text + "'";
DataTable lTbl = mUti.PGetDataTable(mConnectString, mStrSQL, "tbl");


////
Error ...
System.Data.OleDb.OleDbException: Syntax error in FROM clause.
at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
thuyphuongid30-Nov-08 17:17
thuyphuongid30-Nov-08 17:17 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
Christian Graus30-Nov-08 17:18
protectorChristian Graus30-Nov-08 17:18 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
Paul Conrad30-Nov-08 17:28
professionalPaul Conrad30-Nov-08 17:28 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
dan!sh 30-Nov-08 17:45
professional dan!sh 30-Nov-08 17:45 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
Christian Graus30-Nov-08 17:17
protectorChristian Graus30-Nov-08 17:17 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
thuyphuongid30-Nov-08 17:28
thuyphuongid30-Nov-08 17:28 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
Paul Conrad30-Nov-08 17:32
professionalPaul Conrad30-Nov-08 17:32 
GeneralRe: C# - Get DataTable from Access. Please, help me. I can not know this bugs. Pin
Paul Conrad30-Nov-08 17:29
professionalPaul Conrad30-Nov-08 17:29 
QuestionPlease rate this Visual C# Wallapaper Pin
Bottomless Wisdom30-Nov-08 12:35
Bottomless Wisdom30-Nov-08 12:35 
AnswerNothing better to do?? Pin
Dave Kreskowiak30-Nov-08 13:02
mveDave Kreskowiak30-Nov-08 13:02 
AnswerRe: Please rate this Visual C# Wallapaper Pin
Colin Angus Mackay30-Nov-08 13:05
Colin Angus Mackay30-Nov-08 13:05 
AnswerRe: Please rate this Visual C# Wallapaper Pin
Christian Graus30-Nov-08 13:36
protectorChristian Graus30-Nov-08 13:36 
AnswerRe: Please rate this Visual C# Wallapaper Pin
Paul Conrad30-Nov-08 14:06
professionalPaul Conrad30-Nov-08 14:06 
AnswerRe: Please rate this Visual C# Wallapaper Pin
leckey30-Nov-08 14:49
leckey30-Nov-08 14:49 
GeneralRe: Please rate this Visual C# Wallapaper Pin
Guffa30-Nov-08 22:25
Guffa30-Nov-08 22:25 
AnswerRe: Please rate this Visual C# Wallapaper Pin
Bottomless Wisdom1-Dec-08 6:59
Bottomless Wisdom1-Dec-08 6:59 
AnswerRe: Please rate this Visual C# Wallapaper Pin
leppie30-Nov-08 23:57
leppie30-Nov-08 23:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.