设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 5078|回复: 19
打印 上一主题 下一主题

[其它] 文件管理器 新鲜出炉[原创]

[复制链接]
跳转到指定楼层
1#
发表于 2003-11-19 03:34:00 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
accessxp+win2000下调试通过

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅
2#
 楼主| 发表于 2003-11-19 03:46:00 | 显示全部楼层
谢谢,可爱的小兔子.请提个意见或建议。我想把它做成一个局域网内的文件资源共享管理系统。
3#
 楼主| 发表于 2003-11-19 16:16:00 | 显示全部楼层
兔兔,谢谢你,你的建议很好,我下一个网络版会用上的。文件位出现的updown箭头,是因为我给这个字段定义的比较长而文本框又较小之故。
4#
 楼主| 发表于 2003-11-19 23:28:00 | 显示全部楼层
在下面的函数中用DAO进行查询得到相应的记录,再用ADD方法。增加NODE。
Private Sub GetFunctionList()
'   初始化 FunctionList 树

On Error GoTo Tree_Fill_Err
   
    Dim rs As DAO.Recordset
    Dim strSQL As String
    Dim nodeCurrent As Node
    Dim strFID, strPID As String
    Dim imgID As Integer
   
    strSQL = "Select * from MISFunctionList Where LN='CN' Order By ParentID,ID"
   
    Set rs = CurrentDb().OpenRecordset(strSQL)
   
    If Not rs.BOF Then
        rs.MoveFirst
    End If
   
   tvFunctionList.Nodes.Clear

    Do While Not rs.EOF
        strFID = "NO" + CStr(rs("ID"))
        strPID = "NO" + CStr(rs("arentID"))
        imgID = Nz(rs("Type"), 0)
        
        If rs("ID") = 0 Then
        tvFunctionList.Style = 3
            Set nodeCurrent = tvFunctionList.Nodes.Add(, tvwFirst, strFID, rs("Name"), imgID, imgID + 1)
               
        Else
           tvFunctionList.Style = 7
           Set nodeCurrent = tvFunctionList.Nodes.Add(strPID, tvwChild, strFID, rs("Name"), imgID, imgID + 1)
        End If
        
        nodeCurrent.Tag = Nz(rs("FCode"), "")
        rs.MoveNext
    Loop
   
    If tvFunctionList.Nodes.Count > 1 Then
        tvFunctionList.Nodes(2).Expanded = True
    End If
   
Function_Exit:
    rs.Close
    Set rs = Nothing
    Exit Sub
   
Tree_Fill_Err:
    DoErr (Err.Number)
End Sub
5#
 楼主| 发表于 2003-11-28 00:32:00 | 显示全部楼层
您还没有把原理看懂,主要是分类的编号(ID)需再仔细看看.就可找到病因所在.看示例要静下心来.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-6-5 10:03 , Processed in 0.092401 second(s), 29 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表