How to put value from variable into a field on a form

DavidCantor

Registered User.
Local time
Today, 14:03
Joined
Oct 4, 2012
Messages
66
I have a string Myval and I it to be output on a form text field. How do I do it I tried

[text7]= Myval

but I am not getting any output in the field text7
 
Try Me.text7.. if that fails make sure Myval does have some value.. user Debug.Print or MsgBox.
 
it has a value and Me.text7 is not displaying the string
 
Private Sub Paid_Click()
Dim myval As String
If Me.Paid.Value = -1 Then
myval = 1
Else
myval = 0
End If
Me.Paid2 = myval
End Sub

this is what I have
 
I am still not seeing the value of myval in the Paid2 text box on the form
 

Users who are viewing this thread

Back
Top Bottom