- UID
- 26457
- 斋米
-
- 斋豆
-
- 回帖
- 0
- 积分
- 8553
- 在线时间
- 小时
- 注册时间
- 2012-3-1
- 最后登录
- 1970-1-1
|
本帖最后由 风继续吹 于 2013-4-11 22:53 编辑
( j4 ~! S# r' B: Y- Q4 c- set rsxls=CreateObject("ADODB.Connection")
! K4 ?1 F( O2 \ - rsxls.Open "Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Extended properties='Excel 8.0;hdr=yes;imex=1';Data Source="&xlspath! ]8 e7 ^. g$ M7 h5 e$ g2 z! w$ x& z
- set rs=server.createobject("adodb.recordset")
' m7 o) L N: I - rs.open "select * from [Sheet1$$]",rsxls,1,1
, l' _6 }6 X' \0 V$ Q - do while not rs.eof
+ ~, k: G& w7 B1 N0 {8 e0 J& e9 ]: g - y=y+trim(gl(rs("名称")))3 r8 h, i) B. i/ H
- rs.movenext2 h7 ?* p- V+ p) z! b
- loop
7 F" b% a8 Z3 ?* l4 J1 X+ b$ r - rs.close
9 C4 y* B) N. ?7 K: `; m - set rs=nothing
g2 K5 u; h: |/ }7 u6 O - rsxls.close& j4 {! A: T# n. K; A
- set rsxls=nothing
" }3 v- P C" l% o- M: ?- u; A# o - response.Write y
7 }' g2 o' R5 r$ A4 K! \
复制代码 运行就死循环,这有哪不对吗?
; Z8 f. _. X- ?求解。
v" Y! c J4 B% ?: _ q0 u' J7 x. e6 N! {
* h2 @ q9 |! v/ i; V, o
怎么就@不上呢?@shaman |
|