dim s as string
with x.recordset
.findfirt "Name=" & s
end with

解决方案 »

  1.   

    我还这样试了,也不行
    dim s,t as string
    t="Name=" & s
    with x.recordset
    .findfirst t
    end with
    也不行,应该怎么办呀,救急!!!
      

  2.   

    dim s as string
    with x.recordset
    .findfirt "Name='" & s & "'"
    end with
      

  3.   

    dim s as string0D
    with x.recordset
    .findfirt "Name=" & "'" & s & "'"
    end with字符串值还要加上一对单引号其他的变量,如integet 
    dim s as integer
    with x.recordset
    .findfirt "Name="  & s
    end withDynaset风格的表才可以用findfrist
      

  4.   

    可以了,
    dim s,t as string
    t="Name=" & chr(39) & s & chr(39)
    with x.recordset
    .findfirst t
    end with
    原来少了两个'