DrSeussFreak
Programmer
Code:
SELECT Right([Last Name], CharIndex(' ', Reverse([Last Name]) + ' ') - 1) [Last Name], from contacts
This is code written for SQL Sever, but I am not sure of how to make it work in Access. Any ideas?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT Right([Last Name], CharIndex(' ', Reverse([Last Name]) + ' ') - 1) [Last Name], from contacts
CharIndex(' ', Reverse([Last Name]) + ' ')
InStrRev([Last Name], ' ')