variables

junmart

Registered User.
Local time
Today, 21:16
Joined
Sep 14, 2001
Messages
29
how do you assign a variable to a textbox?
 
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
 
mine was a general question and your response solved my problem. thanks a lot!
 

Users who are viewing this thread

Back
Top Bottom