J
JString
To any and all who are willing to help...
My project contains two forms that I'm having some trouble with. Form1
pulls a snapshot recordset from the back-end and assigns it to a local
listbox that is used for browsing through the records. Form2 is set to
'Single Form' view and contains two subforms which display related data and
the underlying tables for both subforms have a many-to-one relationship with
the table for Form2.
I need to code the listbox in Form1 that contains the recordset so that when
a record is double-clicked, Form2 is opened with a one-record recordset
containing this record.
I've had some success by using the docmd.openform method with its 'where'
parameter set to filter out a single record, but when Form2 is opened, the
user has the option to click the 'Remove Filter' button to load all records.
This is something that I don't want the user to be able to do.
If I try opening Form2 first (without a recordsource) and then set its
'RecordSource' property to a new SQL statement, I run into the 'Enter
Parameter Value' prompt because of its linked subforms.
Does anybody know of a better way to do this?
Thanks in advance.
My project contains two forms that I'm having some trouble with. Form1
pulls a snapshot recordset from the back-end and assigns it to a local
listbox that is used for browsing through the records. Form2 is set to
'Single Form' view and contains two subforms which display related data and
the underlying tables for both subforms have a many-to-one relationship with
the table for Form2.
I need to code the listbox in Form1 that contains the recordset so that when
a record is double-clicked, Form2 is opened with a one-record recordset
containing this record.
I've had some success by using the docmd.openform method with its 'where'
parameter set to filter out a single record, but when Form2 is opened, the
user has the option to click the 'Remove Filter' button to load all records.
This is something that I don't want the user to be able to do.
If I try opening Form2 first (without a recordsource) and then set its
'RecordSource' property to a new SQL statement, I run into the 'Enter
Parameter Value' prompt because of its linked subforms.
Does anybody know of a better way to do this?
Thanks in advance.