blue weasle
Registered User.
- Local time
- Today, 04:58
- Joined
- Sep 8, 2004
- Messages
- 14
Thanks in advance for any help!
I have a Timber inventory database I'm working on and need to pull a specific volume from a table based on log diameter and log height. I am using the following expression in a subform to get that value:
[volumecalc]=DLookUp("volume","VolumeTable_Doyle78","logs=forms![StandForm]![InventorySub].Form!logs And dbh=Forms![standform]![InventorySub].Form!dbh")
Then use this expression to get my volume per acres based on that individual log:
[volperacre]=([volumecalc])*(((DLookUp("BAF","StandInfo","StandID=forms![StandForm]![InventorySub].Form!StandID")/(0.005454*([dbh]^2))/DLookUp("Points","StandInfo","StandID=forms![StandForm]![InventorySub].Form!StandID")))/1000)
This is working great, but is this the most efficiant way to get this? Also, I want to beable to sum the [volperacre] total on the subform and multiply that by the ACRES field on the Parent Form but get an error for the Total Volume on the Parent form.
What can I do to show the user the current total volume on the parent form?
anyone??
I have a Timber inventory database I'm working on and need to pull a specific volume from a table based on log diameter and log height. I am using the following expression in a subform to get that value:
[volumecalc]=DLookUp("volume","VolumeTable_Doyle78","logs=forms![StandForm]![InventorySub].Form!logs And dbh=Forms![standform]![InventorySub].Form!dbh")
Then use this expression to get my volume per acres based on that individual log:
[volperacre]=([volumecalc])*(((DLookUp("BAF","StandInfo","StandID=forms![StandForm]![InventorySub].Form!StandID")/(0.005454*([dbh]^2))/DLookUp("Points","StandInfo","StandID=forms![StandForm]![InventorySub].Form!StandID")))/1000)
This is working great, but is this the most efficiant way to get this? Also, I want to beable to sum the [volperacre] total on the subform and multiply that by the ACRES field on the Parent Form but get an error for the Total Volume on the Parent form.
What can I do to show the user the current total volume on the parent form?
anyone??