怎样把用query控件查出来的结果删除,还有怎样把用query控件查出来的结果打印出来
解决方案 »
- 如何在combobox中输入内容按回车后让dbgrid的某一列得到焦点(setfocus)?
- 给大家推荐一个下电子书的地方
- 怎样做一个好的软件注册算法或程序
- 我没有问题!请海龙大哥进来!想谢谢你!给你100分!!!
- 想学delphi~!谁有相关的初学者资料!
- 为什么有得函数不能使用
- 难道没有高手可以解决这个问题吗???
- TEXT文件的读写问题,请帮我一下,我急!
- 有一个将在程序中实现将菜单变成office XP菜单样式的小程序,我忘记在哪个网站上找到过,请提供线索:)[抱歉只有3分了:P]
- Get lan ip address in lan
- 软件发布,是关于软件工程中文转换的。
- 字段对象TFiled中的EditMask属性的使用问题 ,100分
query1.deleterecords();可以删除所有的记录
这个过程的详细说明是:Deletes one or more records in the dataset.TAffectRecords = (arCurrent, arFiltered, arAll, arAllChapters);
procedure DeleteRecords(AffectRecords: TAffectRecords = arAll);DescriptionUse DeleteRecords to delete one or more records from the recordset the ADO dataset component represents.If the recordset does not support record deletions, an exception is raised. Use the Supports method to determine whether the recordset supports deleting records.If the dataset was opened in batch update mode, the records are only ed for deletion. Apply the batch deletions by calling the UpdateBatch method. If the dataset is not in batch update mode, the records are immediately removed from the base table.AffectRecords is a TAffectRecords constant that determines which records are deleted by DeleteRecords. The default value for the AffectRecords parameter is arAll, which causes all records in the recordset to be deleted.Option MeaningarCurrent Only the deletes the current record.
arFiltered Only deletes records accessible through the current filter.
arAll Deletes all records in the recordset.
arAllChapters Deletes records in all chapters (ADO chapters)如果要把query中查询出来的内容打印的话,则需要你自己制作报表,然后才能打印,或是把内容导出到EXCEL中,然后由用户自己排版打印!