» 
Access, copy field from subform to subform?
I have a value in one subform that I need to copy to another subform. I've been copying values from the from to a subform by using something along the lines of:
strFormValue = txtFormField.Text
Me!frmSubForm.SetFocus
DoCmd.GoToRecord, , AcNewRecord
Me!frmSubForm!txtSubFormField.Text = strFormValue
But, now the value I need is in another subform and I'm stumped. Access won't recognize the field in the subform. I tried using similar code but I can't get Access to recognize the field on the source subform. Only difference is that I'm not including the DoCmd.GoToRecord... line. I can set the focus to the source subform, but I can't get to the actual field in the subform.
Ok now to try and help clarify all this garbage. I have one form for data entry, it's linked to a table of current values. The calculations are performed in a query and a subTotal is displayed in a subform (I'll call it source subform) I have another table with past values, a history table, so when the enduser clicks on a button in the form, select values from the form are copied into a subform (destination subform) which is linked to the history table. But, I need to copy the subtotal from the source subform into the destination subform. If anyone was able to understand any of this, and has some ideas, I'd love to hear them. Thanks.
|