Hi everyone,
I would like to use a subform to trigger a query and display the results as text on the master form (or as a tooltip, if the option is available). I will use as an example the familiar setup of an author table, book table, and association table called author-books
AUTHOR TABLE
--------------
id first last firstlast biomemo
BOOK TABLE
------------
id title year
AUTHOR-BOOK TABLE
---------------------
id authorid bookid
The "firstlast" column of the AUTHOR table is already generated programatically in the AUTHOR form when the user edits the "first" or "last" fields. I have a BOOK form with an AUTHOR-BOOK subform that displays the "firstlast" column of the AUTHOR table. When someone clicks on a row in this subform, I want the biographical notes about the author (biomemo) to display somewhere on the form or to hover over the row like a tool tip. I believe I need to add code to the "current" event of the subform. I am unsure how to query the author table using the "authorid" from the selected subform row and unsure how to assign the "biomemo" result to the text of a form label or other visual element. I welcome any advice.
Thank you,
-david