I table field GLAccountDesc. it can have 1 - 75 characters. I need a fixed length output of 20 characters. so far I have this
IIF(LEN([GLAccountDesc]>=20,MID(GLAccountDesc,1,20),[GLAccountDesc])
obviously the FALSE statement is not correct because it will have 1-19 charactes NOT 2. I need spaces (as needed) to fill the result to 20 characters.
I cannot figure out a simple solution. In excel I would use the REPT function, but that does not exist in MS Access
I was thinking STRING might work, but have not figured it out yet.
Any help is appreciated.
IIF(LEN([GLAccountDesc]>=20,MID(GLAccountDesc,1,20),[GLAccountDesc])
obviously the FALSE statement is not correct because it will have 1-19 charactes NOT 2. I need spaces (as needed) to fill the result to 20 characters.
I cannot figure out a simple solution. In excel I would use the REPT function, but that does not exist in MS Access
I was thinking STRING might work, but have not figured it out yet.
Any help is appreciated.