My goal is to create an Attachments pop-up form that can be opened for any given primary record. When I open the Attachments form from the primary record interface, it sets the record id to a tempvar and then opens up a continuous form that lists all attachments with a foreign key equal to the id.
This works fine as long as records exist with that foreign key, but if there are no existing attachments for the id, the form opens to an id of "0". Would it be better to build the form in relation to a query, and then set query constrains based on the TempVar? Or what's the best way to handle this?
Relationships:
Form design/relevant parameters: