junmart
09-20-2001, 05:42 AM
how do you assign a variable to a textbox?
|
View Full Version : variables junmart 09-20-2001, 05:42 AM how do you assign a variable to a textbox? Rich@ITTC 09-20-2001, 06:10 AM Hi Junmart Your question is a bit vague! However here is a stab at what you might be looking for. Suppose your text box is called txtFullName and you want the variable to be two names stored elsewhere concatenated with a single space between. In your code you might have something like: Dim strFirstName As String Dim strLastName As String Dim strFullName As String strFirstName = FirstName 'The name of a field underlying your form. strLastName = LastName strFullName = strFirstName & " " & strLastName Me.txtFullName = strFullName HTH Rich Gorvin junmart 09-20-2001, 06:32 AM mine was a general question and your response solved my problem. thanks a lot! |