R
Ronny
Hi, I have this piece of code:
-----------
Dim user As String
user = Left(ap_GetUserName, 10)
Trim (user)
MsgBox Right(user, 5)
-----------
If the user is rwilliam, the msgbox shows iam. There are
som characters at the end of ap_GetUserName I want to get
rid off, because it is not possible to store user in a
table. If I set the number to 8 instead of 10 it works
great..
How do I check for valid characters?
-----------
Dim user As String
user = Left(ap_GetUserName, 10)
Trim (user)
MsgBox Right(user, 5)
-----------
If the user is rwilliam, the msgbox shows iam. There are
som characters at the end of ap_GetUserName I want to get
rid off, because it is not possible to store user in a
table. If I set the number to 8 instead of 10 it works
great..
How do I check for valid characters?