sqlstr = "select * from xxxx where LOWER(yyyy) = 'zzzz'"

sqlstr="select * from xxxx where (select lower(yyyy) from xxxx)='zzzz'"
试试看

解决方案 »

  1.   

    函数没有定义很正常啊,有些函数在SQL7.0和8.0中有定义但是6.0就没有,有些就更不能在Access中使用了,这样的话你可以尝试改用其它的函数或者方式了。
      

  2.   

    Set link = New ADODB.Connection
    dim tempstr as string
    link.ConnectionString =省略,但肯定正确 
    link.Open
    tempstr=LOWER(yyyy) 
    Set recordone = New ADODB.Recordset
    sqlstr = "select * from xxxx where tempstr= zzzz"
    Set recordone = link.Execute(sqlstr)
      

  3.   

    哦,错了Set link = New ADODB.Connection
    dim tempstr as string
    link.ConnectionString =省略,但肯定正确 
    link.Open
    tempstr=Lcase(yyyy) 'lcase()是VB中提供的函数
    Set recordone = New ADODB.Recordset
    sqlstr = "select * from xxxx where tempstr= zzzz"
    Set recordone = link.Execute(sqlstr)
      

  4.   

    sqlstr = "select * from xxxx where LOWER(yyyy) = 'zzzz'"
      

  5.   

    同意FreshAir(FreshAir) 
    Access不支持Lower()函数,用其他函数代替,事实上你的情况可以直接去掉lower,字段名事不区分大小写的(Access中)