急急!!!假如我要读取字段"TWSF-BD1"的一部分值,请问用代码怎么实现?谢谢高手们
急急!!!假如我要读取字段 "TWSF-BD1 "的一部分值,如要读取“BD1”,请问用代码怎么实现?谢谢高手们
[解决办法]
Dim str As String
str = "TWSF-BD1 "
str = Mid(str, 6)
[解决办法]
rs.Open "select * from test7 where 机组型号 like '%str% ' ", conn, 2, 2
不正确,应该是
rs.Open "select * from test7 where 机组型号 like '% " & str & "% ' ", conn