标题:[MSFlexGrid1.Text = rs.Fields(j).Value 有错
只看楼主
yuxin1382
Rank: 1
等 级:新手上路
帖 子:172
专家分:0
注 册:2006-12-8
得分:0 

Dim sql As String

Dim i As Integer

Dim j As Integer
Call opensjk

sql = "select * from yhda "

rs.Open sql, sjk, 1, 1

MSFlexGrid1.Rows = rs.RecordCount + 1

MSFlexGrid1.Cols = rs.Fields.Count+1

For i = 1 To rs.RecordCount + 1

MSFlexGrid1.Rows = i+1

For j = 0 To rs.Fields.Count+1

MSFlexGrid1.Text = rs.Fields(j).Value

Next j

提示MSFlexGrid1.Rows = rs.RecordCount + 1对像不可操作

2007-09-17 11:19
随风逐流
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:passerby
等 级:版主
威 望:8
帖 子:4054
专家分:271
注 册:2007-6-13
得分:0 

LS说的对.yuxin1382编程习惯不好.


[url=http://www./html/6/6694/]极道金丹[/url][url=http://www./html/2/2849/]九阴九阳[/url][url=http://www./html/2/2596/]凡人修仙传[/url]
2007-09-17 11:20
yuxin1382
Rank: 1
等 级:新手上路
帖 子:172
专家分:0
注 册:2006-12-8
得分:0 
不好意思,初学者,麻烦各位了啊
2007-09-17 11:21



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-170532-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.332887 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved