sqlstr:='select * from 操作表 where '+
'厂号='+inttostr(combobox1.ItemIndex)+' and ' +
'类型 ='+inttostr(combobox4.ItemIndex)+' and ' +
' 保存时间 like '''+trim(combobox2.Text+'-'+combobox3.Text)+'%'' order by 操作编号';
保存时间字段是DATE型
我的数据库是ACCESS,combobox2.Text存的是年如(2003,2004),
combobox3.Text存的是月如(08,09),在我的电脑上可以查出记录,在别人的
电脑上就不行了,
我要根据我的选择任意查询记录???????
'厂号='+inttostr(combobox1.ItemIndex)+' and ' +
'类型 ='+inttostr(combobox4.ItemIndex)+' and ' +
' 保存时间 like '''+trim(combobox2.Text+'-'+combobox3.Text)+'%'' order by 操作编号';
保存时间字段是DATE型
我的数据库是ACCESS,combobox2.Text存的是年如(2003,2004),
combobox3.Text存的是月如(08,09),在我的电脑上可以查出记录,在别人的
电脑上就不行了,
我要根据我的选择任意查询记录???????
但是在我的电脑上可以查询出数据,
我们在搞数据库设计的时候已经定了,不能在改,一定要用日期型的,