Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > ADO Data > delete record
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 4251 of 4320
Post > Topic >>

delete record

by mani <mmvvnn@[EMAIL PROTECTED] > Jun 16, 2008 at 11:41 PM

Hai.......

I am using _RecordSetPtr in vc++ using T_TIME table in MS Access 2000
to store the data and diplayed in List control. select a row in list
control and click delete button i want delete record based on
REG_DATE(date/time). I am using the following code


CString sReg_Date;
M_LCtrl_BedInfo.GetItemText(iBedColumn,3);
				CString sDelete;
				sReg_Date.Trim();
				sDelete.Format("delete from T_TIME where  REG_DATE = %s
",sReg_Date);
				mC_DB->m_AdoDb->BeginTrans();
				mC_DB->fn_DeleteData(sDelete);
				mC_DB->m_AdoDb->CommitTrans();

it reurns the following error re****t

Syntax error (missing operator) in query expression

Please help me how can delete the record based on Data/time field
Thanks in advance
Mani.
 




 4 Posts in Topic:
delete record
mani <mmvvnn@[EMAIL PR  2008-06-16 23:41:28 
Re: delete record
"SaranG(Saravanan)&q  2008-06-16 23:53:28 
Re: delete record
"Bob Barrows [MVP]&q  2008-06-17 06:28:16 
Re: delete record
"Stephen Howe"   2008-06-17 12:06:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:00:23 CST 2008.