How to convert currency into double in VBA?
问题 I have three textboxes and I get their value like this: Dim X, Y, W As Double X = DLookup("Summ", "tblPlatej", "ID= " & Form_frmPlatej!ID) Y = DLookup("Deposit_before", "tblPlatej", "ID= " & Form_frmPlatej!ID) W = DLookup("Monthly_payment", "tblPlatej", "ID= " & Form_frmPlatej!ID) But when I change the value of textbox like this Form_frmPlatej.Deposit_before = X - W + Y I get a Type mismatch error. All textboxes are currency. How do I calculate new record and put that number in the "Deposit