I have a hirarchical recordset obtained with MSDataShape.1 provider. Does anyone know if it is posible to filter (using the .filter property) the recordset by a field that belongs to one of the "chapters" (child recordset)?.
hi,
it is possible to do that in the design time itself with the help of data environment and meflexgrid.
suppose i'm having 2 table as follows:
author table:
---------------
1. authorcode
2. name
3. address
4. country
book table:
---------------
1. bookcode
2. book name
3. authorcode
this can be easily related by creating a commnad1 in a data environment, the author table and another command2 as command1's child with book table and relate it with the field authorcode
and in the msflexgrid, select the dataenvironmentas its datasource and command1 as its recordsource
simply execute the program.
I have test your option with the data environment, but the problem is the same. I can´t use the .filter property of the child recordset. When you create a hierarchical recordset using SHAPE, one of the fields of the parent recordset is a recordset itself, so you cann´t access its value, and so you can not use it´s .filter property to filter it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.