G
Guest
I found this code in an Access 2007 programming book and tried to make it
work(using Access 2003)which may be the problem. Does anyone see a problem
with the code which would give me the error message:
"Undefined function 'pcase' in expression.
Public Function Pcase(Anytext as string) as String
'Create a string variable, then store AnyText in that variable already
'Converted to proper case using the built-in StrConv() function
Dim FixedText As String
FixedText = StrConv(Anytext, vbUpperCase)
'Now return the modified string.
Pcase = FixedText
End Function
work(using Access 2003)which may be the problem. Does anyone see a problem
with the code which would give me the error message:
"Undefined function 'pcase' in expression.
Public Function Pcase(Anytext as string) as String
'Create a string variable, then store AnyText in that variable already
'Converted to proper case using the built-in StrConv() function
Dim FixedText As String
FixedText = StrConv(Anytext, vbUpperCase)
'Now return the modified string.
Pcase = FixedText
End Function