表a_Click
Dim i As Integer
Dim Values As String
Dim dr As DataRow
dr = DataTables("车次").Find("车次 = " & "'" & Tables("表A").Current("车次") & "'" )
If dr IsNot Nothing
Dim wz As Integer = Tables("车次").FindRow(dr)
If wz >= 0 Then
Tables("车次").Position = wz
End If
For i=1 To Tables("车次").Cols.Count-1
If Tables("车次").Current(Tables("车次").Cols(i).Name) >"" Then
Values = Values & Tables("车次").Current(Tables("车次").Cols(i).Name) &"|"
End If
Next
Tables("表A").Cols("终到站").ComboList= Values
End If
[此贴子已经被作者于2012-7-6 1:12:02编辑过]