A family of Microsoft relational database management systems designed for ease of use.
Assuming a text box [txtUserName] on a report with a rectangle [boxUserName] that you want to fill with the letters from txtUserName. The code in the On Format event would be:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim intChar As Integer 'current character in string
Dim intChars As Integer 'number of total characters
Dim intTotalWidth As Integer 'width of rectangle to fill
Dim intCharWidth As Integer 'character spacing
Dim strUserName As String 'text value to spread
intChars = Len(Me.txtUserName)
intTotalWidth = Me.boxUserName.Width
intCharWidth = intTotalWidth / intChars
strUserName = Me.txtUserName
Me.CurrentY = Me.boxUserName.Top
For intChar = 1 To intChars
Me.CurrentY = Me.boxUserName.Top
Me.CurrentX = Me.boxUserName.Left + intCharWidth * (intChar - 1) + intCharWidth / 2
Me.Print Mid(strUserName, intChar, 1)
Next
End Sub The results would look like:
The boxUserName has the red outline. You may need to do some tweaking of the code to get a better positioning, font size, etc.