If e.IsFocusCell Then If e.Col.Name = "颜色" Then e.Col.Combolist = DataTables("Unit").GetComboListString("颜色", "[组别] = '" & e.Row("组别") & "' AndAlso [货号] = '" & e.Row("货号") & "'") End If End If
3楼
don 发表于:2008/12/17 10:53:00
狐爸爸说过:表达式中只有Or和And,只有代码才能用OrElse及AndAlso: If e.IsFocusCell Then If e.Col.Name = "颜色" Then e.Col.Combolist = DataTables("Unit").GetComboListString("颜色", "[组别] = '" & e.Row("组别") & "' And [货号] = '" & e.Row("货号") & "'") End If End If