1,216
社区成员
发帖
与我相关
我的任务
分享
Set rs = New Recordset
rs.Open "select 变量地址 from [PlcInfoTable] where 数据库表 = 'ProductD4'", conn, adOpenKeyset, adLockPessimistic
temp = rs.GetString()
dd = Split(temp, Chr(32))
'记忆有误,测试了如下可以:
dim temp as string
dim dd() as string
Set rs = New Recordset
rs.Open "select 变量地址 from [PlcInfoTable] where 数据库表 = 'ProductD4'", conn, adOpenKeyset, adLockPessimistic
temp = rs.GetString()
dd = Split(temp, Chr(13)) '数据是由Chr(13)回车符分隔 ,每个字段的值是用vbTab分隔