TVReplay99
Registered User.
- Local time
- Today, 19:05
- Joined
- Jan 2, 2002
- Messages
- 29
I am creating a Transaction database. The tblStock contains all stock items with StockNo as the primary key field. In the Transactions form the user enters the StockNo and the Description and price field are populated but locked. This, no problem.
My boss now wants to have a 'catch all' StockNo of MISC to allow the user to enter the Description and Price on their own for nonregular items in the storeroom.
Currently I don't save the description in the tblTransDetails Table and don't want to but I can't figure a way around this. I have tried this code:
If Me.StockNo.Value = "MISC" Or "FED" Or "UPS" Or "AIR" Then
Me.Desc.Enabled = True
Me.Desc.Locked = False
Me.Desc.SetFocus
End If
But if there is more than one 'MISC' line item on a transaction then the description is changed for all on the same transaction. I'm not sure I'm on the right track design wise or form wise.
Any suggestions?
Thanks all,
Brian
My boss now wants to have a 'catch all' StockNo of MISC to allow the user to enter the Description and Price on their own for nonregular items in the storeroom.
Currently I don't save the description in the tblTransDetails Table and don't want to but I can't figure a way around this. I have tried this code:
If Me.StockNo.Value = "MISC" Or "FED" Or "UPS" Or "AIR" Then
Me.Desc.Enabled = True
Me.Desc.Locked = False
Me.Desc.SetFocus
End If
But if there is more than one 'MISC' line item on a transaction then the description is changed for all on the same transaction. I'm not sure I'm on the right track design wise or form wise.
Any suggestions?
Thanks all,
Brian