Hi,
This question involves three forms in my application.
Form 1 is a search form. When an ID is entered, a table in my database is queried. If the ID is found, I use the Open method of the DoCmd to open form 2.
The recordsource for Form 2 is then dynamically created using an SQL statement, passing the ID from Form 1 into the SQL statement. Form 2 also has a subform (Form 3).
I'm trying to pass a value from a field on Form 2 to Form 3 when Form 3 loads. However, because the recordsource for Form 2 is dynamically generated, when Form 3 loads it can not read the values in any of the fields on Form 2.
Does anyone have any suggestions? Or is this too confusing.
This question involves three forms in my application.
Form 1 is a search form. When an ID is entered, a table in my database is queried. If the ID is found, I use the Open method of the DoCmd to open form 2.
The recordsource for Form 2 is then dynamically created using an SQL statement, passing the ID from Form 1 into the SQL statement. Form 2 also has a subform (Form 3).
I'm trying to pass a value from a field on Form 2 to Form 3 when Form 3 loads. However, because the recordsource for Form 2 is dynamically generated, when Form 3 loads it can not read the values in any of the fields on Form 2.
Does anyone have any suggestions? Or is this too confusing.