5 pts.
 Pass data from Access subform to another form
In Access - How do I select or pass data from a subform to another form? I can pass the data back to the main form, but I want to pass to the subform data to another form

Software/Hardware used:
Access
ASKED: February 9, 2011  4:11 PM
UPDATED: February 10, 2011  8:28 PM

Answer Wiki:
If you are using the OpenForm method, you could use the openargs parameter to pass data to the opened form. You would reference it in the other form with Me.OpenArgs. This works best with just one piece of data to be passed; if you need more than one piece of data, you could separate them with a dilimiter and then parse it out of Me.OpenArgs. Or if it is multiple fixed width pieces of data, you could use the mid function to parse it. Another way of doing it is referencing the field from the called form like this: variable = Forms![MasterFormName].Form![SubForm]![ColumnName] MasterFormName is the name of your master form SubForm is the name of the subform object in the master form ColumnName is the name of the column in the subform object
Last Wiki Answer Submitted:  February 10, 2011  8:28 pm  by  Randym   1,740 pts.
All Answer Wiki Contributors:  Randym   1,740 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _