C
Charles A. Lackman
Hello,
I have Two Tables in a dataset (Table1 and Table2). I have created a
relationship (MyRelationship) and created a View (MyView) from them. I am
able to display the data the way I want but I am trying to setup a search
function.
I can search anything in Table1 without a problem.
MyView.Sort = "ColumnName"
MyView.Find("1234")
However,
I would like to do a search on Table2 from inside the same View.
Like this (which does not work)
MyView.Sort = "Table2.ColumnName"
MyView.Find("1234")
Or Bind the Data To a ComboBox (which doesn't work either)
ComboBox.Datasource = MyView
ComboBox.DisplayMember = "Table2.ColumnName"
Thanks,
Chuck
I have Two Tables in a dataset (Table1 and Table2). I have created a
relationship (MyRelationship) and created a View (MyView) from them. I am
able to display the data the way I want but I am trying to setup a search
function.
I can search anything in Table1 without a problem.
MyView.Sort = "ColumnName"
MyView.Find("1234")
However,
I would like to do a search on Table2 from inside the same View.
Like this (which does not work)
MyView.Sort = "Table2.ColumnName"
MyView.Find("1234")
Or Bind the Data To a ComboBox (which doesn't work either)
ComboBox.Datasource = MyView
ComboBox.DisplayMember = "Table2.ColumnName"
Thanks,
Chuck