I have a form that I want to perform some simply math in the form. I could do it a query but this is an unbound form that a user will be using.
I have six fields on a form. 5 text box and 1 combo box. The combo box populates 2 of the text box. The user will input a quantity in another text box. So I have txtqty and txtpackagecost.
I want to multiply the 2 togeather and have the answer placed in txttotal.
I used this code so that when I tab into the field I would get the result however I am only returning $0.00
Private Sub txttotal_GotFocus()
Dim txtqty As Integer
Dim txtpackagecost As Integer
txttotal = txtqty * txtpackagecost
End Sub
What's wrong