M
Martin
i created a "warehouse" form, from where the user can add records to the
"warehouse" table. in the form the user can select the date, the component
type (via a combo box) and the user can type in the inflow or ouflow amount.
at the bottom of the "warehouse" form i placed a button which adds the
information to the "warehouse" table. everything is working fine so far,
except that i am trying to add a text box to the form which shows the current
amount of the selected component type (this text box is based on a query
which calculated the current amount of all component types in the warehouse).
i already tried using a Dlockup function in the control source of the textbox
(=DLookUp(" [current amount] "," Query![current stock] "," [component type] =
& Form![ware
house]![cboct]")), but it doesnt work. Can someone bring me on the right
track?
"warehouse" table. in the form the user can select the date, the component
type (via a combo box) and the user can type in the inflow or ouflow amount.
at the bottom of the "warehouse" form i placed a button which adds the
information to the "warehouse" table. everything is working fine so far,
except that i am trying to add a text box to the form which shows the current
amount of the selected component type (this text box is based on a query
which calculated the current amount of all component types in the warehouse).
i already tried using a Dlockup function in the control source of the textbox
(=DLookUp(" [current amount] "," Query![current stock] "," [component type] =
& Form![ware
house]![cboct]")), but it doesnt work. Can someone bring me on the right
track?