Hi Friends,
I've got a field in a table like xxxx xxx and want to have xxxxxxx. Here is my code:
Do Until RS.EOF
RS.Edit
varString = RS![Number]
varString = Left(varString, 4) & Right(varString, 3)
varString = CLng(varString)
RS![Number] = varString
RS.Update
RS.MoveNext
Loop
it works almost perfect, though for the number 1001 001 Access changes it just to 1001. Do you have an idea what I did wrong?
Thanx + regards,
Key
I've got a field in a table like xxxx xxx and want to have xxxxxxx. Here is my code:
Do Until RS.EOF
RS.Edit
varString = RS![Number]
varString = Left(varString, 4) & Right(varString, 3)
varString = CLng(varString)
RS![Number] = varString
RS.Update
RS.MoveNext
Loop
it works almost perfect, though for the number 1001 001 Access changes it just to 1001. Do you have an idea what I did wrong?
Thanx + regards,
Key