Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy unbound to bound field values

Status
Not open for further replies.

DoctorJDM

Technical User
Apr 15, 2007
60
0
0
GB
Have a form frmJobs with a set of separate subforms to calculate total costs of materials, labour etc.

I'm bringing the subtotals from each subform into unbound fields on the main form, by setting the sources like this

Field : ubdMaterials
Source : forms!frmJobs.sfmMaterials.form.TotalMaterialCost

This is fine. I now want to use these subtotals elsewhere so is there a best way of transferring them to bound fields?
I've tried putting the bound fields on the main form then using the Close or Current events to do the updating but it's not entirely satisfactory.
 
How are ya DoctorJDM . . .

You write to bound/unbound the same way!
Code:
[blue]   Me!BoundName = Me!UnBoundName
or
   Me!BoundName =forms!frmJobs.sfmMaterials.form.TotalMaterialCost    
[/blue]
Its not the best Idea saving calculated results in a table! [surprise]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Thanks Ace

Which is the best event to trigger this if I continue?

Otherwise, if the data doesn't go into a table how would you use it in say a report that outputs the details of several Jobs?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top