一个SELECT语句的问题,100分送,在线等待
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),在我的电脑上可以查出记录,在别人的
电脑上就不行了,
我要根据我的选择任意查询记录???????