Good Morning!
I have a form, where I am entering information. I need to insure, CAPS are used in this database, for everthing.
I tried the below Module I found on line, but can not seem to get it to work.
Can someone help me out? I'm not very familiar with modules, so am unsure of how this is supposed to be written, nor what to put in the keypress event on the fields in the form where needed.
Thanks
I was putting in Keypress, ConvertToCaps KeyAscii as was instructed. but Access says it doesn't know the macro, group, etc... not sure. It's name is saved as mdlTextStuff, but I didn't think that mattered. The code is below. Thanks, again!
Public Sub ConvertToCaps(KeyAscii As Integer)
' Converts text typed into control to upper case
Dim strCharacter As String
' Convert ANSI value to character string.
strCharacter = Chr(KeyAscii)
' Convert character to upper case, then to ANSI value.
KeyAscii = Asc(UCase(strCharacter))
End Sub