I have a string, which is an account number. ex: 111222233333
When I get the account number from the field in the form I get this as a result:
" 111222233333"
It has a space at the beginning. However, when I try to do any of the following, it still has a leading space:
Trim(acctNum.value)
LTrim(acctNum.value)
Or if I define a string
Dim strAcct as String
stracct = acctNum.value
strAcct = Trim(strAcct)
Still the leading space. What am I doing wrong?
Is there a function that I can use to just delete the first character, whatever that character is. Maybe it isn't a space somehow??
I'm also confused as to why there is a leading space when it doesn't show in the field on the form or the table the data is in. I did not make this database, I'm just fixing it (ugh).
When I get the account number from the field in the form I get this as a result:
" 111222233333"
It has a space at the beginning. However, when I try to do any of the following, it still has a leading space:
Trim(acctNum.value)
LTrim(acctNum.value)
Or if I define a string
Dim strAcct as String
stracct = acctNum.value
strAcct = Trim(strAcct)
Still the leading space. What am I doing wrong?
Is there a function that I can use to just delete the first character, whatever that character is. Maybe it isn't a space somehow??
I'm also confused as to why there is a leading space when it doesn't show in the field on the form or the table the data is in. I did not make this database, I'm just fixing it (ugh).