Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / April 2005

Tip: Looking for answers? Try searching our database.

averaging the cost of a subform to a main form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zeniae - 14 Apr 2005 21:29 GMT
what I am trying to do is get an average price for a product.  I have set up
a form called products which tells me the units on hand/ units on order etc.  
my subform to this shows me date/po/#order/#recieved/Unit price.  What I want
to do is on my main form I want a text box that says average price that
averages the unit price from my subform?  Somewhat new any info would help!  
Thanks
Ofer - 14 Apr 2005 22:54 GMT
create a field on your sub form at the form footer that avarage the field
price.
on the cntrol source of that field write "=avg([price])""
make it not visible

Now create another field on your form, and link it to the field you created
at the sub form.
"="MySubName.Form!AvgFieldName

> what I am trying to do is get an average price for a product.  I have set up
> a form called products which tells me the units on hand/ units on order etc.  
> my subform to this shows me date/po/#order/#recieved/Unit price.  What I want
> to do is on my main form I want a text box that says average price that
> averages the unit price from my subform?  Somewhat new any info would help!  
> Thanks
esparzaone - 14 Apr 2005 23:43 GMT
Thank You - That was perfect

> create a field on your sub form at the form footer that avarage the field
> price.
[quoted text clipped - 11 lines]
> > averages the unit price from my subform?  Somewhat new any info would help!  
> > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.