For my own knowledge im trying to create a database to test and sample the function created by Allen Brown.
Using access 2013 to this point I have created exactly as per the instruction by the tutorial. With the exception of my own name conventions
eg. tblacq = AcqT
http://allenbrowne.com/appinventory.html
The tutorial does not cover how to actualy use the function in a form.
So what I have worked out sofar looking at the sample database provided by Rainlover is to create an unbound text control.
I have tried using the function in the AcqDetailF (Sales Form) and also in the ProductF (Product Form) list to get the onhand amount
Product Form: Unbound text field
Aquisition Form:Unbound text field
Both return the same result and only display the last stock take amount or zero if nothing exist so it works to a certain degree.
The problem is its not calculating the disposed and aquired amounts. Seems Im missing the final piece to the Puzzle and Im unable to find the correct way to call the function from the forms unbound controls.
Thanks Jeff
Using access 2013 to this point I have created exactly as per the instruction by the tutorial. With the exception of my own name conventions
eg. tblacq = AcqT
http://allenbrowne.com/appinventory.html
The tutorial does not cover how to actualy use the function in a form.
So what I have worked out sofar looking at the sample database provided by Rainlover is to create an unbound text control.
I have tried using the function in the AcqDetailF (Sales Form) and also in the ProductF (Product Form) list to get the onhand amount
Product Form: Unbound text field
Code:
=Onhand([ProductID])
Code:
=Onhand([ProductCombo],[Forms]![AcqF]![txtAcqDate])
Both return the same result and only display the last stock take amount or zero if nothing exist so it works to a certain degree.
The problem is its not calculating the disposed and aquired amounts. Seems Im missing the final piece to the Puzzle and Im unable to find the correct way to call the function from the forms unbound controls.
Thanks Jeff