I am creating an unbound form with 2 fields and a command button.
The first field is a combo box (cbPart), which lists the ID (hidden), Part#, and Description from a Parts table. The second field is a text field (inputPartQty) that needs to be used for the Quantity. The command button (cmdUpdateQty) will update the record in the table for the selected part (cbPart) based on the number entered in the quantity (inputPartQty).
Once a user selects a part in cbPart, I need the form to refresh, select the Qty required for that part from the parts table, and use it as the default value in inputPartQty. The user will then edit that number, if needed, and hit cmdUpdateQty. cmdUpdateQty will then trigger an expression that will update the QtyOnHand field in the table by adding the amount in inputPartQty.
I am not used to dealing with unbound forms. I cannot figure out how to make inputPartQty fill in once the user selects a Part in cbPart. (Eventually, there will be a second set of controls to deal with assemblies, which are in another database.)
Can anyone help?
Cheryl dc Kern
The first field is a combo box (cbPart), which lists the ID (hidden), Part#, and Description from a Parts table. The second field is a text field (inputPartQty) that needs to be used for the Quantity. The command button (cmdUpdateQty) will update the record in the table for the selected part (cbPart) based on the number entered in the quantity (inputPartQty).
Once a user selects a part in cbPart, I need the form to refresh, select the Qty required for that part from the parts table, and use it as the default value in inputPartQty. The user will then edit that number, if needed, and hit cmdUpdateQty. cmdUpdateQty will then trigger an expression that will update the QtyOnHand field in the table by adding the amount in inputPartQty.
I am not used to dealing with unbound forms. I cannot figure out how to make inputPartQty fill in once the user selects a Part in cbPart. (Eventually, there will be a second set of controls to deal with assemblies, which are in another database.)
Can anyone help?
Cheryl dc Kern