insomniac53
Board Regular
- Joined
- Sep 3, 2013
- Messages
- 104
I'm trying 'simply' to multiply the contents of two text boxes and put the product in a third. This is the code I'm using:
but it throws up a Type Mismatch error, even though I'm forcing the data types to fit.
Can anyone tell me what I'm doing wrong?
Thanks.
Code:
Me.Controls.Item("TxtBox_A_Deposit").Value = format(CDbl(Me.Controls.Item("TxtBox_A_Percent").Value) * CInt(Me.Controls.Item("TxtBox_AB_Qty").Value), "£0")
Can anyone tell me what I'm doing wrong?
Thanks.