Hi,
I've been trying to tweak my form-embedded query such that double-clicking one of the rows (whose data is locked) will open a corresponding form where the data can be edited. The query is a join of several nested tables, and the form that opens contains several levels of subforms that roughly mirror the table structure.
Right now I've got a line of code opening the top-level form of the record identified in the query:
DoCmd.OpenForm "TOP_LEVEL", , , "top_level_id = [FORMS].[EMBEDDED_QUERY].[top_level_id]"
So far, so good. But now, I need to find a way to have the top level form display the sub form and the sub-sub form corresponding to the query's remaining entries.
With Access (and VBA in particular), I've learned that when I spend more than two hours searching the web without success, it means I'm considering the problem in the wrong way....Is DoCmd the right tool for this task?
Thanks in advance.
I've been trying to tweak my form-embedded query such that double-clicking one of the rows (whose data is locked) will open a corresponding form where the data can be edited. The query is a join of several nested tables, and the form that opens contains several levels of subforms that roughly mirror the table structure.
Right now I've got a line of code opening the top-level form of the record identified in the query:
DoCmd.OpenForm "TOP_LEVEL", , , "top_level_id = [FORMS].[EMBEDDED_QUERY].[top_level_id]"
So far, so good. But now, I need to find a way to have the top level form display the sub form and the sub-sub form corresponding to the query's remaining entries.
With Access (and VBA in particular), I've learned that when I spend more than two hours searching the web without success, it means I'm considering the problem in the wrong way....Is DoCmd the right tool for this task?
Thanks in advance.