Access VBADiscuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I have a License Number Field that I want to Strip all of the characters off except the last three numbers. I am new to Access and I thought there might be a function or code to do this.
My License Number will be like this in each row which contains about 13,000 records: 031-000818501-000. In this example, I want only the last three numbers left which in this case would be 000.
If you'd like to first *check* that you have a dash followed by 3 digits, you could do that, too. But RIGHT (and LEFT and MID) functions and more are all available in Access SQL and in Access VBS coding.