First, this would need to be a bound field on the subform, so you'd have to add a field to your table (or use a shaped recordset afor that form, assuming you're using 2000 or later).
After that, you'd just do an Update when the user changes the value in your mainform:
Sub YourTextbox_AfterUpdate()
Currentproject.connection.Execute "UPDATE YourSubformTable SET YourSubformField= txtUnitPrice * " & Me.YourMainFormField " WHERE SomeIDValue=" & Me.SomeIDValue
Me.YourSubfomrControl.Form.Requery
End Sub
The "SomeIdValue" is the field in the subform's recordsource that links those two datasets togther (i.e. it's the "Child" value in the Master/Child linkfields for the Subform control). Obviously you'd have to change the names of tables, fields etc to match your own.