G
GSR
Hi,
In general, I want to ensure that any entries by a person
into a form are converted to upper case characters as the
character is entered into the field, even if the caps
lock is on. The following code is fine, but this would
have to be applied for each field on the form.
Private Sub txtEmplyLName_KeyPress(KeyAscii As Integer)
Dim strCharacter As String
strCharacter = Chr(KeyAscii)
KeyAscii = ASC(UCASE(strCharacter))
End Sub
Given the example above, is it possible to create a
public function w/in a module that would perform the same
task?
Any guidance or suggestions would be most appreciated!!
In general, I want to ensure that any entries by a person
into a form are converted to upper case characters as the
character is entered into the field, even if the caps
lock is on. The following code is fine, but this would
have to be applied for each field on the form.
Private Sub txtEmplyLName_KeyPress(KeyAscii As Integer)
Dim strCharacter As String
strCharacter = Chr(KeyAscii)
KeyAscii = ASC(UCASE(strCharacter))
End Sub
Given the example above, is it possible to create a
public function w/in a module that would perform the same
task?
Any guidance or suggestions would be most appreciated!!