In a form, I'd set up the control source of a text box with:
[tt]=Mid(FieldName,14)[/tt]
which would display what you ask for. Or are you talking about actually removing the characters from the field? If so create an update query using the same expression on the field.
[tt]dim lCounter as long
dim lDiff as long
lDiff = 13
dim str1 as string
str1 = "abcdefghijklmonpqrstuvwxyz"
for lCounter = 1 to 2
msgbox mid$(str1,((lCounter-1)*lDiff)+1,lDiff)
next lCounter[/tt]
But this only displays things, not remove. In my first reply, I mention the concept of using a query to REMOVE it from the field. And there is some mention of the text manipulation functions, mid, left, right etc in the help files.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.