"Hello World". And that is about the level of proficiency I feel I am at many times! I have several problems that have eluded me for answers for the past few weeks but first here is the one that once figured out will keep me busy once again for a time. Any direction / examples will be appreciated. A sample database is attached for those inclined.
I have read that posting operations can be a bit picky but what I want at the moment may not even be that at all. Just a "simple" field update procedure is needed I think. I have 3 forms all based on the same table called "prod". The beginning form "Prod_Form_Tab" has an embedded browse listing all the products and associated information such as prices, quantities,etc.. By pushing the "change" button (with any product highlighted) it brings up the next form called "Product_Record_Change" which is used to change most of the information on the first form(Prod_Form_Tab). It is on this form and the next one that the help is needed.
On the form "Product_Record_Change" there are the following numeric fields that I wish to be updated by changing values in the the next form accessed via the "Change Inventory" button: Stock Total, Last Unit Cost, Average Unit Cost, and Inventory Value. By pushing the Inventory Change button the form "P_Inv_Adj" is brought up. It has 3 user-entry
fields in which I want to use for changing the values in the former 2 forms(which of course is actually changing the values in the prod table itself).
I have tried many ways to accomplish this to update the Stock Total field of the form "Product_Record_Change" form with the closest success at where I am at now---but when I change the value, say by 100, the Stock Total will first change by 200 when saving(closing the form P_Inv_Adj)....then if I go back into the P_Inv_Adj by pushing the Inventory Change button and close it again without changing any value it will add an additional 100. So in all it adds 3 times whatever I first enter in the P_Inv_Adj field. As far as I can tell I have not told Alpha to do this but obviously I have somewhere.
I used a calculated field expression in the prod table's field rules to make the Stock Total field update with the changing values. Basically it is---Stock_Total + Qty_Chg(quantity changed).
If the field rule is not what I should be using I just want to say that I have also tried substituting a calculated field for the Stock Total field with no success as well as attempting to write some script to no avail(not saying either of which may be just what I need but I couldn't even get close using them!).
If anyone could just point me toward a direction to accomplish this at least I would know I wasn't wasting my time on something that shouldn't be considered.
Mike
I have read that posting operations can be a bit picky but what I want at the moment may not even be that at all. Just a "simple" field update procedure is needed I think. I have 3 forms all based on the same table called "prod". The beginning form "Prod_Form_Tab" has an embedded browse listing all the products and associated information such as prices, quantities,etc.. By pushing the "change" button (with any product highlighted) it brings up the next form called "Product_Record_Change" which is used to change most of the information on the first form(Prod_Form_Tab). It is on this form and the next one that the help is needed.
On the form "Product_Record_Change" there are the following numeric fields that I wish to be updated by changing values in the the next form accessed via the "Change Inventory" button: Stock Total, Last Unit Cost, Average Unit Cost, and Inventory Value. By pushing the Inventory Change button the form "P_Inv_Adj" is brought up. It has 3 user-entry
fields in which I want to use for changing the values in the former 2 forms(which of course is actually changing the values in the prod table itself).
I have tried many ways to accomplish this to update the Stock Total field of the form "Product_Record_Change" form with the closest success at where I am at now---but when I change the value, say by 100, the Stock Total will first change by 200 when saving(closing the form P_Inv_Adj)....then if I go back into the P_Inv_Adj by pushing the Inventory Change button and close it again without changing any value it will add an additional 100. So in all it adds 3 times whatever I first enter in the P_Inv_Adj field. As far as I can tell I have not told Alpha to do this but obviously I have somewhere.
I used a calculated field expression in the prod table's field rules to make the Stock Total field update with the changing values. Basically it is---Stock_Total + Qty_Chg(quantity changed).
If the field rule is not what I should be using I just want to say that I have also tried substituting a calculated field for the Stock Total field with no success as well as attempting to write some script to no avail(not saying either of which may be just what I need but I couldn't even get close using them!).
If anyone could just point me toward a direction to accomplish this at least I would know I wasn't wasting my time on something that shouldn't be considered.
Mike
Comment