V
vandy
I am attempting to lock a transaction record after i key in the first value
in this case the length of a wire recieved into the inventory. The following
are the details of my database.
I have a table Rawmaterial_Items and Rawmaterial_Tran
Table-Rawmaterial_Items
ItemID
ItemNo
Supplier
UOM
Location
Stock No
Table-Rawmaterial_Tran
TransactionID
TranItemID
Qty
DOT (Date of Transaction)
Type ( 1 – Received or -1 Issued)
IssuedTo
Length
Relationship – one to many ItemID ~ TranItemID
Referential Integrity constraint
I have a main form called Rawmaterial Transaction and I am calling a subform
in a datasheet view.
The subform has QOH calculated QOH= sum (qty * type)
Length = sum[length]
In the main forms footer I am calling the QOH value from the subform and
displaying it.
I have a combo box in the main form which selects the item no, stock no and
displays the corresponding details on the main form.
Subform_Final
TransactionID TranItemID Qty DOT IssuedTo Length Type
588 382 11 10-Apr-08 L-floor 0.61 Received
682 382 2 14-Apr-08 yz 0 Issued
707 382 2 01-May-08 xyz 0 Issued
QOH shows 7
Length of wire shows 4.27 km calculated by deducting 4* 0.61 = 2.44
Total wire length = 11* 0.61 = 6.6
Remining wire = 4.2 km
Everything gets calculated ok but is there any way i can lock the user from
entering further values in subsequent cells eg. in TransactionItemID 682 and
707 after the user enters the total length of the wire the first time.
any help will be greatly appreciated.
in this case the length of a wire recieved into the inventory. The following
are the details of my database.
I have a table Rawmaterial_Items and Rawmaterial_Tran
Table-Rawmaterial_Items
ItemID
ItemNo
Supplier
UOM
Location
Stock No
Table-Rawmaterial_Tran
TransactionID
TranItemID
Qty
DOT (Date of Transaction)
Type ( 1 – Received or -1 Issued)
IssuedTo
Length
Relationship – one to many ItemID ~ TranItemID
Referential Integrity constraint
I have a main form called Rawmaterial Transaction and I am calling a subform
in a datasheet view.
The subform has QOH calculated QOH= sum (qty * type)
Length = sum[length]
In the main forms footer I am calling the QOH value from the subform and
displaying it.
I have a combo box in the main form which selects the item no, stock no and
displays the corresponding details on the main form.
Subform_Final
TransactionID TranItemID Qty DOT IssuedTo Length Type
588 382 11 10-Apr-08 L-floor 0.61 Received
682 382 2 14-Apr-08 yz 0 Issued
707 382 2 01-May-08 xyz 0 Issued
QOH shows 7
Length of wire shows 4.27 km calculated by deducting 4* 0.61 = 2.44
Total wire length = 11* 0.61 = 6.6
Remining wire = 4.2 km
Everything gets calculated ok but is there any way i can lock the user from
entering further values in subsequent cells eg. in TransactionItemID 682 and
707 after the user enters the total length of the wire the first time.
any help will be greatly appreciated.