Click here to Skip to main content
15,895,423 members
Home / Discussions / Database
   

Database

 
AnswerRe: Using the CONVERT Function Pin
Hesham Amin22-Oct-05 4:41
Hesham Amin22-Oct-05 4:41 
QuestionDataGridViewComboBox selection Pin
Drew McGhie21-Oct-05 8:23
Drew McGhie21-Oct-05 8:23 
QuestionArranging records in Database Pin
ddmcr21-Oct-05 6:17
ddmcr21-Oct-05 6:17 
AnswerRe: Arranging records in Database Pin
Duncan Edwards Jones21-Oct-05 6:36
professionalDuncan Edwards Jones21-Oct-05 6:36 
QuestionFileMaker Server Advanced Pin
Sebastien Lachance21-Oct-05 5:14
Sebastien Lachance21-Oct-05 5:14 
Questionhelp making database application without using sql server Pin
unni_jeevan21-Oct-05 3:53
unni_jeevan21-Oct-05 3:53 
AnswerRe: help making database application without using sql server Pin
André Ziegler21-Oct-05 5:13
André Ziegler21-Oct-05 5:13 
QuestionSQL - DELETE Directive error Pin
ddmcr21-Oct-05 3:30
ddmcr21-Oct-05 3:30 
Hello guys,
I have a MFC dialog based application which Is loading some data from a *.mdb database file , but I have problems when I want to delete a record there .
Suppose we have next situtation. Table1 in my database file looks like this :

ID      Name      Surname<br />
1       nick      Gates<br />
2       john      Allen<br />
3       david     Ellison


And I want to delete the secont record : 2 john Allen
So I am doing following :

void CMyDlg::OnDelete()
{
...
TRY
	{
	database.Open(NULL,false,false,sDsn);
	CRecordset recset( &database );

        //Here I get error
	SqlString.Format("DELETE from Table1 WHERE Name IS '%s'",sParam);
		
	database.ExecuteSQL(SqlString);
	}
CATCH(CDBException, e)
	{
		AfxMessageBox("Database error: "+e->m_strError);
	}
END_CATCH;

...
}


I get error Message Box : "Invalid use of IS Operator in expression 'Name IS john''"

Can anyone help what's wrong with the IS directive above??



"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill



-- modified at 9:41 Friday 21st October, 2005
AnswerRe: SQL - DELETE Directive error Pin
Looney Tunezez21-Oct-05 3:51
Looney Tunezez21-Oct-05 3:51 
GeneralRe: SQL - DELETE Directive error Pin
ddmcr21-Oct-05 3:54
ddmcr21-Oct-05 3:54 
GeneralRe: SQL - DELETE Directive error Pin
André Ziegler21-Oct-05 5:15
André Ziegler21-Oct-05 5:15 
QuestionDisplaying date Pin
Anonymous21-Oct-05 3:25
Anonymous21-Oct-05 3:25 
AnswerRe: Displaying date Pin
Hesham Amin22-Oct-05 4:48
Hesham Amin22-Oct-05 4:48 
GeneralRe: Displaying date Pin
Anonymous23-Oct-05 23:04
Anonymous23-Oct-05 23:04 
Questioncalander value using query Pin
Member 184400621-Oct-05 2:24
Member 184400621-Oct-05 2:24 
QuestionSearching for a list of words Pin
hasanali0021-Oct-05 1:59
hasanali0021-Oct-05 1:59 
QuestionFind an replace text in Row in a DataTable Pin
blackhole07720-Oct-05 11:59
blackhole07720-Oct-05 11:59 
AnswerRe: Find an replace text in Row in a DataTable Pin
S Douglas20-Oct-05 22:52
professionalS Douglas20-Oct-05 22:52 
GeneralRe: Find an replace text in Row in a DataTable Pin
blackhole07721-Oct-05 9:46
blackhole07721-Oct-05 9:46 
GeneralRe: Find an replace text in Row in a DataTable Pin
S Douglas23-Oct-05 22:01
professionalS Douglas23-Oct-05 22:01 
GeneralRe: Find an replace text in Row in a DataTable Pin
blackhole07724-Oct-05 9:27
blackhole07724-Oct-05 9:27 
GeneralRe: Find an replace text in Row in a DataTable Pin
S Douglas24-Oct-05 12:29
professionalS Douglas24-Oct-05 12:29 
GeneralRe: Find an replace text in Row in a DataTable Pin
S Douglas23-Oct-05 23:40
professionalS Douglas23-Oct-05 23:40 
GeneralRe: Find an replace text in Row in a DataTable Pin
blackhole07729-Oct-05 18:24
blackhole07729-Oct-05 18:24 
GeneralRe: Find an replace text in Row in a DataTable Pin
S Douglas30-Oct-05 16:05
professionalS Douglas30-Oct-05 16:05 

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.