Referencing subform control on the main form:

place in a text box the following code

 
=Forms!formname!subformname!Form!controlname