它能够将值从一个lsit视图传输到另一个吗? [英] Is it able to transfer the values from one lsit view to another???

查看:101
本文介绍了它能够将值从一个lsit视图传输到另一个吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

1)我有列id的列表视图和列名的另一个列表视图

我可以在其他列表视图中获取名称,如果我点击列表视图上的ID ???



2)

如果一个值表示特定员工的工资总额未保存在数据库中并且计算是另一种形式,如果我必须通过点击listv view1(上面提到的)中的id来获得特定员工的工资总额,我可以得到,如果这些控制在另一个FORN没有计算没有完成???


请澄清???

感谢提前...........


1) I have a list view with column id.and another list view with column name
can i get the name on other listview,if i click the id on the listview???
and
2)
if one value say gross salary of particular employee is not saved in databse and the calculation is in another form,if i have to get the gross salary of the particular employee by clicking the id in listv view1,(above mentioned),can i get that,IF THESE CONTROLS IN ANOTHER FORN WHER NO CALCULATION IS NOT DONE???

please clarify???
THANKS IN ADVANCE...........

推荐答案




如果ListViews具有相同的密钥,那么肯定是可能的。 ..


问候

Veena
Hi,

It is definately possible if ListViews have same "Key" ..

Regards
Veena






如果ListViews具有相同的密钥,那么肯定是可能的。 ..


问候

Veena
Hi,

It is definately possible if ListViews have same "Key" ..

Regards
Veena



代码:(vb)

如果ListView1.SelectedItem.Checked = True那么

rs.Open"选择所有日期来自saldetail其中id =''" &安培; ListView1.SelectedItem& "''",conn,adOpenStatic,adLockOptimistic

ListView2.ListItems.Clear

ListView2.Refresh

ListView2.ListItems.Add = rs!日期

ListView2.Refresh

rs.Close

设置rs = Nothing


one带有ID和其他日期的listview ...

检查出来....

i需要一个id我需要得到他们的工作日期....

102 01/02/08

01/04/08

01/06/08

但是上面的代码不起作用???? pleaSE CHECK THRU

code:(vb)
If ListView1.SelectedItem.Checked = True Then
rs.Open "Select all date From saldetail Where id= ''" & ListView1.SelectedItem & "''", conn, adOpenStatic, adLockOptimistic
ListView2.ListItems.Clear
ListView2.Refresh
ListView2.ListItems.Add = rs!Date
ListView2.Refresh
rs.Close
Set rs = Nothing

one listview with id and other with dates...
Check this out....
i need for one id i need to get their working dates as....say
102 01/02/08
01/04/08
01/06/08
but the above code is not working????pleaSE CHECK THRU





通过查看代码,你使用ListView作为一些ListBox (只有一列),你最好有2列..

对于第二个ListView,你必须添加ID的子项,这可以用作键。在第一个ListView中也使用相同的ID作为密钥..

所以当你填充第二个列表时,它应该包含2个列,ID和日期。

所以当你搜索时,你可以循环搜索匹配的IS'

什么代码,你用来填充First ListView ..?



问候

Veena
Hi,

By looking into the Code, you are using ListView as some ListBox (Only one Column) , Its better you have 2 columns..
For Second ListView, You have to Add SubItems of ID, This can be used as Key. In first ListView also use the Same ID as Key..
So when you populate second list, It should Contain 2 Columns, ID and Date.
So when you search, you can loop throug for the matching IS''s
What Code, are you using for populating the First ListView..?


Regards
Veena


这篇关于它能够将值从一个lsit视图传输到另一个吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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