Hi, i have a few controls which on input i want the letters to be capitals, i know i could insert the code in each control on key press but i believe this to be a long winded way, is there any way i could place the code once to format all controls, i have some code inserted below which i believe could work although its untested,
Dim strCharacter As String
Dim ctl As Control
For Each ctl In Forms![main input].Controls
If Right(ctl.Name, 4) = "main" Then
strCharacter = Chr(keyascii)
keyascii = Asc(UCase(strCharacter))
End If
Next ctl
any help once again would be appreciated
Dave
Dim strCharacter As String
Dim ctl As Control
For Each ctl In Forms![main input].Controls
If Right(ctl.Name, 4) = "main" Then
strCharacter = Chr(keyascii)
keyascii = Asc(UCase(strCharacter))
End If
Next ctl
any help once again would be appreciated
Dave