编程论坛
注册
登录
编程论坛
→
Delphi论坛
查询 编程 怎么编
laishiking
发布于 2011-05-19 18:06, 440 次点击
1. 按姓名查找 是用combobox 下拉
2. 按类型 收入 支出 是用 radiobutton
按时间查找的 用datetimepicker 例如2010-1-1 到 2011-1-1
1 回复
#2
aaa000830
2011-05-19 21:27
1. select * from 人员表 where name = '''+trim(combobox.text)+''' '
2.
if 收入.selected then
select * from 表 where leixing = '''+收入+'''
else
select * from 表 where leixing = '''+支出+''';
1