This is a stupid question.....but I have put some code inside a text box which I want to make the contents of the text box change immediately depending one what else is happening on the form.

Makes no sense? Heres the code, I know it must be so obvious...

VB Code:
  1. Option Explicit
  2. Dim TOTAL As Double
  3. Dim LINES As Integer
  4.  
  5. Private Sub txttotal_Change()
  6. LINES = txtlines.Text
  7.  
  8.  
  9. If cmoperms.Text = "10p" Then
  10. TOTAL = ("0.10") * LINES
  11. End If
  12.  
  13.  
  14. txttotal.Text = TOTAL
  15. End Sub

Im gonna hit myself when I find out the answer.....