Find Jobs
Hire Freelancers

Create one MS Access form with tree control

$30-50 USD

已关闭
已发布将近 14 年前

$30-50 USD

货到付款
Create one MS Access form which displays a hierarchy of employees from Northwind Traders which permits drag and drop reorganization of hierarchy, changing the reporting relationships between employees. This form must use the exontrol's ExGrid activeX control rather than the MS TreeView control.? ExGrid allows the first column to display a hierarchy like TreeView and allows other columns to display information about the value displayed in the grid. Here's a simple example: Employee? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Job Title? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Fax number John? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? President? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 111-111-1111 -- Mary? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Vice President Marketing? ? 222-222-2222 ---- Louise? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Secretary? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 333-333-3333 -- Gary? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Vice President Logistics? ? ? ? 444-444-4444 ---- Tom? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Production manager? ? ? ? ? ? ? ? ? 555-555-5555 ---- Robert? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Shipping manager? ? ? ? ? ? ? ? ? ? ? ? 666-666-6666 ## Deliverables This project is to create a one Microsoft Access form with a tree that displays employees in the Northwind Trader employees table in a TreeView-like hierarchy with drag and drop capability to reassign employees. ? MS Note 167309 “Sample Procedure to Fill a TreeView Control Recursively?? illustrates how to use the superior/subordinate relationships of employees in the Northwind Traders database to do this with MSTreeView 5.0 SP2.? The attached database has a working illustration of this note.. ? My project is to create one form, but replace the TreeView 5.0 SP2 with an activeX control ExGrid from exontrol.com.? The download can be found at <[login to view URL]>. ? Online help for ExGrid includes sample code for VB, VBA, FoxPro, C++, etc. and is located at <[login to view URL]> ? This control is available for a free, unlimited evaluation period and also supports drag and drop like the TreeView. ? It is necessary to download this control and add it to the list of activeX controls that can be used by MS Access. ? Exontrol technical support states that ExGrid will support drag and drop as shown below: ? '=================================================== Back to the issue, you can have the drag and drop exactly as in the Microsoft TreeView control with the link you provided. ? Shortly, you need: ? 1. Set the OLEDropMode = 1 2. Handle the OLEStartDrag event amd set the AllowedEffects parameter on 2 and call the [login to view URL] with some data to be dragged 3. Handle the OLEDragDrop event. ? A simple sample will be: ? Private Sub Form_Load() ? ? ? [login to view URL] = exOLEDropManual End Sub ‘---------------------------------------------------------------------- Private Sub Grid1_OLEDragDrop(ByVal Data As [login to view URL], Effect As Long, ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) ? ? ? Dim hI As HITEM ? ? ? hI = CLng([login to view URL](exCFText)) ? ? ? If (hI <> 0) Then ? ? ? ? ? ? ? With Grid1 ? ? ? ? ? ? ? ? ? ? ? Dim c As Long, hit As HitTestInfoEnum ? ? ? ? ? ? ? ? ? ? ? Dim h As Long ? ? ? ? ? ? ? ? ? ? ? h = .ItemFromPoint(-1, -1, c, hit) ? ? ? ? ? ? ? ? ? ? ? If (h <> 0) Then ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? .BeginUpdate ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? With .Items ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? .SetParent hI, h ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? .ExpandItem(h) = True ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? .SelectItem(hI) = True ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? End With ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? .EndUpdate ? ? ? ? ? ? ? ? ? ? ? End If ? ? ? ? ? ? ? End With ? ? ? End If? ? ? End Sub ‘--------------------------------------------------------------------- Private Sub Grid1_OLEStartDrag(ByVal Data As [login to view URL], AllowedEffects As Long) ? ? ? With Grid1 ? ? ? ? ? ? ? Dim c As Long, hit As HitTestInfoEnum ? ? ? ? ? ? ? Dim h As Long ? ? ? ? ? ? ? h = .ItemFromPoint(-1, -1, c, hit) ? ? ? ? ? ? ? If (h <> 0) Then ? ? ? ? ? ? ? ? ? ? ? AllowedEffects = 2 ? ? ? ? ? ? ? ? ? ? ? [login to view URL] h, exCFText ? ? ? ? ? ? ? End If ? ? ? End With End Sub ‘--------------------------------------------------------------------- This sample changes at runtime the parent for the dragged item with the one that hovers the cursor. The sample can be complicated so it can change the position of item, and so on. '====================================================
项目 ID: 3606419

关于此项目

5提案
远程项目
活跃14 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
5威客以平均价$39 USD来参与此工作竞价
用户头像
See private message.
$34 USD 在10天之内
5.0 (510条评论)
7.0
7.0
用户头像
See private message.
$42.50 USD 在10天之内
4.8 (294条评论)
6.3
6.3
用户头像
See private message.
$42.50 USD 在10天之内
5.0 (25条评论)
4.7
4.7
用户头像
See private message.
$34 USD 在10天之内
5.0 (2条评论)
0.6
0.6
用户头像
See private message.
$42.50 USD 在10天之内
0.0 (1条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
Pittsburgh, United States
5.0
37
付款方式已验证
会员自9月 8, 2012起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。