不是!access数据库,有日期型、数字型、货币型!请问应该如何写?

解决方案 »

  1.   

    从combobox中的选择的中文字段名,然后通过str得到其在数据库中的真正字段名!str:='';
      if (Combobox1.Text='物料类别') then str:='Catagory.Description';
      ......str为类似上面的语句!
      

  2.   

    str没有赋值,而且if (Radiobutton6.Checked=True) then
            adoquery1.Filter:=''+str+'='''+Edit1.Text+'''';
          if (RadioButton5.Checked=True) then
            adoquery1.Filter:=''+str+'>'''+Edit1.Text+'''';
          if (RadioButton7.Checked=True) then
            adoquery1.Filter:=''+str+'<'''+Edit1.Text+'''';
    中的adoquery1.Filter赋值语句好象有错。
      

  3.   

    filter复制语句没有错呀!部分字段可以查出来!
      

  4.   

    你的str只能查询字符的数值,对于数值型,时间型是不适用的。
    对数值,时间分别定义变量:i,tim