Office中国论坛/Access中国论坛

标题: 文本合并的困惑!!请教高手!! [打印本页]

作者: caoybh    时间: 2007-4-14 08:08
标题: 文本合并的困惑!!请教高手!!
a="(08)"

b="(09)"

c="(10)"

通过d=a&","&b&","&c 输出结果为"(08),(09),(10)"

但是我需要的结果为d="(08)","(09)","(10)"

请问各位高手怎么实现呢? 谢谢了
作者: zxzx2733    时间: 2007-4-14 09:06
中文的
a = "“" & "(08)" & "”"
b = "“" & "(09)" & "”"
c = "“" & "(10)" & "”"
d = a & "," & b & "," & c

英文的
a = "'" & "(08)" & "'"
b = "'" & "(09)" & "'"
c = "'" & "(10)" & "'"
e = a & "," & b & "," & c
d = Replace(e, "'", """")
作者: andymark    时间: 2007-4-14 16:02
try:

d = """" & a & """" & ",""" & b & """" & " ,""" & c & """"




欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) Powered by Discuz! X3.3