链接DATACOMBO和DATAGRID [英] LINKING DATACOMBO AND DATAGRID

查看:62
本文介绍了链接DATACOMBO和DATAGRID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最诚挚的问候,



 我在visual basic 6中遇到datacombo和datagrid的问题,我想将datacombo与datagrid,我的数据库Access,表1"联系起来;奖励"内容字段"id_emp,id_dep,money,date" ,表2"Emp"内容字段
" id_emp,emp_name",表3" Dep"内容字段"id_emp,dep_name" ,版权所有,一对多,
所以在vb6 datacomboEmp中是"emp_name"  与ADODC2和datacomboDep是"dep_name"使用ADODC1和datagrid是"奖励"使用ADODC3,现在我想要的是当用户从datacomboEmp中选择任何项目时,显示数据网格中的表格奖励中的mony和数据
 怎么可能......我的意思是在选择datacombo show的员工时数据网格中的金额和日期,我希望我的想法很清楚了。


b $ b b b b b b b

解决方案

Dina,


VB6已经老了,我们可以称之为老式。 


微软不再支持它作为程序语言,也不再是本论坛的主题,以避免误用于使用Com部分的程序语言。当前部分使用.Net。


尝试在Internet上查找论坛。请注意,这些内容也会逐渐减少。


此论坛中的链接作为粘性帖子在我认为旧版本中使用。 



Best Regards,

 I have a problem with datacombo and datagrid in visual basic 6 , I want linking datacombo with datagrid, my database Access , Table 1" reward" content the field "id_emp,id_dep,money,date" ,Table 2 "Emp" content the field "id_emp,emp_name", Table 3 "Dep" content the field "id_emp,dep_name" , the releationships one-to-many
so in vb6 datacomboEmp is "emp_name"  with ADODC2 and datacomboDep is "dep_name" with ADODC1 and datagrid is "reward" with ADODC3 , Now what I want is when the user selects any item from datacomboEmp display the mony and data from the table reward in datagrid  how is it possible .... I mean when selecting an employee of datacombo shows the amount and date in datagrid , I hope my idea it's clear


all the best

解决方案

Dina,

VB6 is old and so old that we can call it vintage. 

It is not anymore supported by Microsoft as program language and also not a subject of this forum to avoid misunderstanding with the in that program language used Com part. The current part uses .Net.

Try to find a forum on Internet. Be aware those are also slowly becoming less.

The link in this forum as sticky post is in my perception to old to use. 


这篇关于链接DATACOMBO和DATAGRID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆