怎么样将数据库中的时间字段,跟FORM的显示时间的控件连接起来啊?
怎么样将ADOQUERY的的数据传递给参数啊?

解决方案 »

  1.   

    把你的数据库的时间取出来
    FORM的显示时间的控件的时间设置为你的数据库的时间不就可以了吗
    要是想简单的话  你可以找dbdatetimepicker直接连接数据库的时间字段的
      

  2.   

    adoquery1.close;
    adoquery1.sql.clear;
    adoquery1.sql.add(select xxtime from table);
    adoquery1.open;datetimepicker1.datetime:=self.dbgrid1.datasoure.dataset.fieldbyvalue('xxtime').asdatetime;
      

  3.   

    在adoquery的afterscroll中加入代码:
    datetimepicker1.datetime:=self.dbgrid1.datasoure.dataset.fieldbyvalue('xxtime').asdatetime;
    应该是你要的。
      

  4.   

    或者用dbedit显示;
    而用monthclander控件对dbedit中的时间进行更改。