Click here to Skip to main content
15,913,669 members
Home / Discussions / C#
   

C#

 
AnswerRe: Delete Registry settings in uninstall Pin
Saamir2-Aug-06 5:04
Saamir2-Aug-06 5:04 
QuestionContainer control color Pin
~~~Johnny~~~2-Aug-06 2:47
~~~Johnny~~~2-Aug-06 2:47 
Questiontabcontrol problem ? help please ... Pin
cmpeng342-Aug-06 2:06
cmpeng342-Aug-06 2:06 
AnswerRe: tabcontrol problem ? help please ... Pin
Ravi Bhavnani2-Aug-06 2:34
professionalRavi Bhavnani2-Aug-06 2:34 
AnswerRe: tabcontrol problem ? help please ... Pin
rah_sin2-Aug-06 2:34
professionalrah_sin2-Aug-06 2:34 
AnswerRe: tabcontrol problem ? help please ... Pin
Stefan Troschuetz2-Aug-06 2:38
Stefan Troschuetz2-Aug-06 2:38 
AnswerRe: tabcontrol problem ? help please ... Pin
yueue2-Aug-06 4:45
yueue2-Aug-06 4:45 
Question" Syntax error in FROM clause " In OleDB . Pin
hdv2122-Aug-06 1:58
hdv2122-Aug-06 1:58 
hi i have access db and it has one table as "user" and 2 fields as "username" and "pass" and in user login Form in my app when input user and pass and click in enter_button the following message was shown :

Syntax error in FROM clause

my enter_button_click code is :
string str_com = "SELECT * FROM user WHERE username = '" + txt_user.Text + "' AND password = '" + txt_pass.Text + "'";
OleDbCommand command = new OleDbCommand(str_com, oleDbConnection1);
OleDbDataReader dr;
try
{

oleDbConnection1.Open();
dr = command.ExecuteReader();
if (dr.HasRows)
{
this.Hide();
Form_Main frm1 = new Form_Main();
frm1.Show();
}
else
{
MessageBox.Show("error"); }
}
finally
{
dr.Close();
oleDbConnection1.Close();
}

how to slove problem ??
thanks ..
AnswerRe: " Syntax error in FROM clause " In OleDB . Pin
Guffa2-Aug-06 2:18
Guffa2-Aug-06 2:18 
AnswerRe: " Syntax error in FROM clause " In OleDB . Pin
Colin Angus Mackay2-Aug-06 2:20
Colin Angus Mackay2-Aug-06 2:20 
AnswerRe: " Syntax error in FROM clause " In OleDB . Pin
albCode2-Aug-06 4:08
albCode2-Aug-06 4:08 
QuestionCustom Component Properties Pin
krieg382-Aug-06 1:28
krieg382-Aug-06 1:28 
AnswerRe: Custom Component Properties Pin
Ingo2-Aug-06 1:38
Ingo2-Aug-06 1:38 
Questionplease help me Pin
avinashprabhu.t.p2-Aug-06 0:54
avinashprabhu.t.p2-Aug-06 0:54 
AnswerRe: please help me Pin
stancrm2-Aug-06 0:57
stancrm2-Aug-06 0:57 
Questiondatagride Pin
btota2-Aug-06 0:53
btota2-Aug-06 0:53 
AnswerRe: datagride Pin
rah_sin2-Aug-06 1:07
professionalrah_sin2-Aug-06 1:07 
QuestionExcel connection Pin
Mohammed Elkholy2-Aug-06 0:39
Mohammed Elkholy2-Aug-06 0:39 
AnswerRe: Excel connection Pin
albCode2-Aug-06 0:43
albCode2-Aug-06 0:43 
QuestionHow to read and write .xls file Pin
chandra9997772-Aug-06 0:32
chandra9997772-Aug-06 0:32 
AnswerRe: How to read and write .xls file Pin
stancrm2-Aug-06 0:38
stancrm2-Aug-06 0:38 
QuestionCheck one item in CheckedListbox Pin
psamy2-Aug-06 0:11
psamy2-Aug-06 0:11 
AnswerRe: Check one item in CheckedListbox Pin
stancrm2-Aug-06 0:36
stancrm2-Aug-06 0:36 
GeneralRe: Check one item in CheckedListbox Pin
psamy2-Aug-06 2:08
psamy2-Aug-06 2:08 
Questionftp server fre space question Pin
puiutzz1-Aug-06 22:42
puiutzz1-Aug-06 22:42 

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.