有一张表
内容如下
qh haoma
2001 2
2002 7
2003 4
. .
. .
. .
2009 X
问
用两个什么控件显示 从起始(qh)到最终(qh)之间的haoma
通过单计一个button 得到这个查询表
可不可以用dbcombobox啊
内容如下
qh haoma
2001 2
2002 7
2003 4
. .
. .
. .
2009 X
问
用两个什么控件显示 从起始(qh)到最终(qh)之间的haoma
通过单计一个button 得到这个查询表
可不可以用dbcombobox啊
可以用lookup
function Lookup(const KeyFields: string; const KeyValues: Variant; const ResultFields: string): Variant; virtual;
可以对edit.text查询
生成报表一起可以写在onclik里
button的onclick事件: DataSet.First;
while not DataSet.Eof do
begin
listBox.Items.Add(DataSet.fieldByName('haoma').AsString);
DataSet.Next;
end;
DBLookupListBox.listsource設為你的查詢數據集。
DBLookupListBox.listfield:='haoma'.