报错信息如下:

此处需要一个日期时间
公式<Record_Selection>
'{DayStatement.日期}='2008-09-05''
此处需要一个日期时间

解决方案:

我把myreport.RecordSelectionFormula = "{DayStatement.日期} = '" + DTP1.Value + "'"
换成myreport.RecordSelectionFormula = "{DayStatement.日期} = # 2008-09-05 #"
就可以查询

 

 

自己也遇到这个问题,找了好久才找到。做个记录。

相关文章:

  • 2021-10-24
  • 2022-12-23
  • 2021-09-05
  • 2022-01-17
  • 2021-11-13
  • 2022-12-23
  • 2021-12-27
猜你喜欢
  • 2021-08-31
  • 2022-01-14
  • 2022-01-09
  • 2021-08-25
  • 2022-12-23
  • 2021-12-19
相关资源
相似解决方案