Hi,
There is a nice feature in Oracle sql that elegantly performs a treewalk for you. I have prepared a passthrough query with such a syntax and put it as the rowsource of my form, and it works fine (read-only but that's no problem). Now I would like to parametrize my start criteria for the query, for example "start with Inventory = InvKey" instead of "start with Inventory=82". I thought the right way to do this was by using the Forms onOpen event and build a dynamic passthrough query. However, whatever I do, when I come to "Set Me.Recordset = recInv" I get an error message that tells me that I can't do it! It says, "The object you entered is not a valid recordset property". I am using DAO. What can I do? Who can tell me what I do wrong or give me a good example?
There is a nice feature in Oracle sql that elegantly performs a treewalk for you. I have prepared a passthrough query with such a syntax and put it as the rowsource of my form, and it works fine (read-only but that's no problem). Now I would like to parametrize my start criteria for the query, for example "start with Inventory = InvKey" instead of "start with Inventory=82". I thought the right way to do this was by using the Forms onOpen event and build a dynamic passthrough query. However, whatever I do, when I come to "Set Me.Recordset = recInv" I get an error message that tells me that I can't do it! It says, "The object you entered is not a valid recordset property". I am using DAO. What can I do? Who can tell me what I do wrong or give me a good example?