在ACCESS里面生成SQL如下:SELECT tAdd.dtTime
FROM tAdd
WHERE (((tAdd.dtTime)>#12/12/2003# And (tAdd.dtTime)<#12/12/2003 10:0:0#))
ORDER BY tAdd.dtTime;即显示在TADD表里DtTime时间在2003-12-12至2003-12-12 10:00:00之间的字段,ACCESS里面能显示正常结果,但在DELPHI程序里使用的时候却出错,提示信息为:project project1.exe raised exception class EOleException with message 'Parameter object is improperly defined.Inconsistent or incomplete infomation was provided'.Process stopped.Use Step or Run to continue.重新RUN,提示:Parameter object is improperly defined.Inconsistent or incomplete information was provided.请问大虾这是什么原因造成的,如果只要显示某天至某天的在DELPHI程序下可得到正常结果,把SQL改成SELECT tAdd.dtTime
FROM tAdd
WHERE (((tAdd.dtTime)>#12/12/2003# And (tAdd.dtTime)<#12/13/2003#))
ORDER BY tAdd.dtTime;这样就可以,但不是我需要的结果,我是需要某天某时间段内的记录,请问用什么方法可以实现...晕,没分了,救救我吧...
FROM tAdd
WHERE (((tAdd.dtTime)>#12/12/2003# And (tAdd.dtTime)<#12/12/2003 10:0:0#))
ORDER BY tAdd.dtTime;即显示在TADD表里DtTime时间在2003-12-12至2003-12-12 10:00:00之间的字段,ACCESS里面能显示正常结果,但在DELPHI程序里使用的时候却出错,提示信息为:project project1.exe raised exception class EOleException with message 'Parameter object is improperly defined.Inconsistent or incomplete infomation was provided'.Process stopped.Use Step or Run to continue.重新RUN,提示:Parameter object is improperly defined.Inconsistent or incomplete information was provided.请问大虾这是什么原因造成的,如果只要显示某天至某天的在DELPHI程序下可得到正常结果,把SQL改成SELECT tAdd.dtTime
FROM tAdd
WHERE (((tAdd.dtTime)>#12/12/2003# And (tAdd.dtTime)<#12/13/2003#))
ORDER BY tAdd.dtTime;这样就可以,但不是我需要的结果,我是需要某天某时间段内的记录,请问用什么方法可以实现...晕,没分了,救救我吧...
解决方案 »
- Invalid class typecast.???????
- 程序以前的通信用的是windows api 现在想改用第三方的sdk接口,接口名字和功能都和以前api不一样 如何改?
- 有关query的更新数据库,急,
- 我遇到了一个打印上的问题
- 怎么取年月日?
- 如何Excel的Cell格式
- 用ACCESS做后台数据库,如何在程序中将一个表的数据导出到新的ACCESS数据库中,新数据库没有这个表时自动创建,有这个表时导出不重复的记
- 怎样才能将dephi6的打印预览中的close改为中文“关闭” .
- 谁有Devexpress FlowChart(就是那个画流程图的),麻烦给我一份,谢谢!
- 我是新手:从A表到B 表 用SQL 语句怎么写?各位仁兄请指教。
- 如何在DELPHI 7下安装第三方控件?
- 有关XML操作问题?急!!!!!!!!
Delphi不检查SQL语句。