Hi,
This forum has been very helpful so far so I'm hoping you can help me solve a few issues I have.
1. The form has three text boxes for inputs and a label where I'm calculating monthly payment based on the inputs.
- I would like to format the result in the label in this format "#,###", and when I used a text box for the result I had no problem using this code:
Private Sub Payoff_Change() Payoff.Value = Format(Payoff.Value, "#,###")
End Sub
but it's not working using a label. Any ideas how I can do this?
- I would like the result to be calculated without using a command button. just when the user finishes the inputs, I want the calculation to show in the label. I tried using MouseMove but when I move the mouse before finishing to input, it gives me an error.
2. I have another three text boxes and a label which calculates their sum. The issue is that the text boxes are formatted in this format "#,###" and when I sum them it only sums the digits before the first comma. so for example, if I have 2,900 3,400 and 1,500 it will sum 2+3+1 = 6
This is the code I'm using to sum them:
Fixed = Val(TxtService.Text) + Val(TxtLabor.Text) + Val(TxtUtil.Text)
Any Ideas here?
I think this is it for now... any help would be much appreciated!
This forum has been very helpful so far so I'm hoping you can help me solve a few issues I have.
1. The form has three text boxes for inputs and a label where I'm calculating monthly payment based on the inputs.
- I would like to format the result in the label in this format "#,###", and when I used a text box for the result I had no problem using this code:
Private Sub Payoff_Change() Payoff.Value = Format(Payoff.Value, "#,###")
End Sub
but it's not working using a label. Any ideas how I can do this?
- I would like the result to be calculated without using a command button. just when the user finishes the inputs, I want the calculation to show in the label. I tried using MouseMove but when I move the mouse before finishing to input, it gives me an error.
2. I have another three text boxes and a label which calculates their sum. The issue is that the text boxes are formatted in this format "#,###" and when I sum them it only sums the digits before the first comma. so for example, if I have 2,900 3,400 and 1,500 it will sum 2+3+1 = 6
This is the code I'm using to sum them:
Fixed = Val(TxtService.Text) + Val(TxtLabor.Text) + Val(TxtUtil.Text)
Any Ideas here?
I think this is it for now... any help would be much appreciated!