表B
PrepareEdit
If e.Col.Name = "省" Then
e.Col.ComboList = DataTables("表A").GetComboListString("省")
ElseIf e.Col.Name = "市" AndAlso e.Row.IsNull("省") = False Then
e.Col.ComboList = DataTables("表A").GetComboListString("市","省 = '" & e.Row("省") & "'")
Else
e.Col.ComboList = ""
End If
[此贴子已经被作者于2013-6-7 16:49:43编辑过]