G
Guest
I have a datasheet view sub form with a dropdown for inventory transaction
type and a dropdown for inventory item. Both the transaction type ID and
Inventory Item ID are required in the tblInvTransactions. The problem I am
having is capturing the error that occurs when the user begins to enter an
inventory transaction by selecting an inventory transaction type and then
attempts to click off the record being created. Note: They cannot select an
Inventory Item without first having selected an inventory transaction type,
it’s disabled.
I've tried using the On Error event but I cannot figure out how to stop the
“You cannot add or change a record because a related record is required in
table “tblStoresInventoryâ€. This is the master item table and there is a
pk/fk to tblInvTransactions. What I want to happen is have the insert
transaction canceled, maybe a custom message to the user, and then control
passed to where ever they clicked.
Any help would be appreciated.
Thanks,
Jim
type and a dropdown for inventory item. Both the transaction type ID and
Inventory Item ID are required in the tblInvTransactions. The problem I am
having is capturing the error that occurs when the user begins to enter an
inventory transaction by selecting an inventory transaction type and then
attempts to click off the record being created. Note: They cannot select an
Inventory Item without first having selected an inventory transaction type,
it’s disabled.
I've tried using the On Error event but I cannot figure out how to stop the
“You cannot add or change a record because a related record is required in
table “tblStoresInventoryâ€. This is the master item table and there is a
pk/fk to tblInvTransactions. What I want to happen is have the insert
transaction canceled, maybe a custom message to the user, and then control
passed to where ever they clicked.
Any help would be appreciated.
Thanks,
Jim