| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 476 人关注过本帖
标题:[求助]麻烦哪位高手能帮我把这个程序解释一下
只看楼主 加入收藏
叶子198455
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-1-29
收藏
 问题点数:0 回复次数:0 
[求助]麻烦哪位高手能帮我把这个程序解释一下
Private m_oRS As New ADODB.Recordset
Private m_bSelect As Boolean
Private m_lID As Long
Private m_oPerRS As Recordset
Private m_strWhere As String
Private m_lSPCID As Long
Private strSql As String
Private get_lPerID As Long
Private strPerName As String






Private Sub cmbType_Click()
Dim rst As New Recordset
With rst
.Open "SELECT * FROM MST_ExpItem", g_Conn, adOpenStatic, adLockReadOnly
.Find "Item = '" & cmbType.text & "'"
If Not .EOF Then
Text1 = fncCVb(.Fields("ItemCode").Value)
End If
.Close
End With
Set rst = Nothing

cmbType2.Clear
Text2 = ""
If Text1.text <> "" Then
With rst
.Open "SELECT DISTINCT ExpCode, Exp, ItemCode FROM MST_ExpItem WHERE ItemCode = " & Text1.text & " Order By ExpCode", g_Conn, adOpenStatic, adLockReadOnly

Do While Not .EOF
If Not IsNull(.Fields("Exp")) Then cmbType2.AddItem .Fields("Exp")
.MoveNext
Loop
.Close
End With
Set rst = Nothing
Else
With rst
.Open "SELECT DISTINCT ExpCode, Exp From MST_ExpItem ORDER BY ExpCode", g_Conn, adOpenStatic, adLockReadOnly

Do While Not .EOF
If Not IsNull(.Fields("Exp")) Then cmbType2.AddItem .Fields("Exp")
.MoveNext
Loop
.Close
End With
Set rst = Nothing
End If
End Sub


麻烦哪位高手帮我解释一下这个程序,谢谢了,刚刚开始学习好多不懂的

搜索更多相关主题的帖子: 麻烦 解释 
2007-01-29 18:07
快速回复:[求助]麻烦哪位高手能帮我把这个程序解释一下
数据加载中...
 
   



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

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