Article ID: 117911
Article Last Modified on 1/19/2007
John.....................................Doe
Text Box 1:
Name: Field0
DefaultValue: "John"
Text Box 2:
Name: Field2
DefaultValue: "Doe"
Text Box 3:
Name: Field4
ControlSource: =[Field0] & Dots([Field2]) & [Field2]
Option Explicit
Function Dots (ByVal Title)
' Set LineLen to the gap you want (in characters) between the
' Field0 data and the beginning of the Field2 data.
Const LineLen = 40
' Set FillChar to the leader character you want to use between the
' fields.
Const FillChar = "."
Dots = String$(LineLen - Len(Title), ".")
End Function
John.....................................Doe
Additional query words: concatenation
Keywords: kbhowto kbprogramming KB117911