Question : Change text box value from "x" to "y"n open

So I have a linked table from corporate in which a fields data is spelled incorrectly. I am pulling in data and want to correct this on a form.  I have the form's On Open event to do the code below, but it is not working. I know .value isn't correct, but I have tried nothing, I have tried .text, nothing seems to work. Any ideas?
1:
2:
3:
4:
If Me.txtReason.Value = "Splat" Then
        Me.txtReason.Value = "Splay"
         
    End If

Answer : Change text box value from "x" to "y"n open

You want to correct the data 'on the form ' . Does that mean you don't want to change the data in the table?

If so then you will have to use an unbound control to display the result.

Use the form current event to do..

If Me.Reason = "Splat" Then
        Me.txtModifiedReason= "Splay"
 else
     Me.txtModifiedReason  = me.reason
 End If
Random Solutions  
 
programming4us programming4us