SilentAiche
Technical User
Using Access 2002 on Win XP:
I have a single name field capturing full names in F-M-L order (John Doe, James E. Dough, etc.) Some names have middle initials, some do not.
In a report, which is based on a query, I would like to accomplish two things: 1), have the names appear as Dough, Jame E. and 2) have the report in alphabetical order by last name.
In a bound field in the report, I have started with
=Right([onename],Len([onename])-(find(" ",[onename])))
and this is getting no respect at all. When I click print preview, it brings up a dialog box asking me to enter a parameter value for "Find."
I recognize that the above attempt doesn't even address FN or MI yet, but when I am building a complicated formula with commands I seldom use, I like to test it as I go. Here, I wanted the report to show me the last name before I proceeded.
I have seen similar problems posted, but they were usually about splitting "OneName" fields into separate first and last name fields. Neither a forum search nor Help gave me an answer.
As always, your help is appreciated.
Tim
I have a single name field capturing full names in F-M-L order (John Doe, James E. Dough, etc.) Some names have middle initials, some do not.
In a report, which is based on a query, I would like to accomplish two things: 1), have the names appear as Dough, Jame E. and 2) have the report in alphabetical order by last name.
In a bound field in the report, I have started with
=Right([onename],Len([onename])-(find(" ",[onename])))
and this is getting no respect at all. When I click print preview, it brings up a dialog box asking me to enter a parameter value for "Find."
I recognize that the above attempt doesn't even address FN or MI yet, but when I am building a complicated formula with commands I seldom use, I like to test it as I go. Here, I wanted the report to show me the last name before I proceeded.
I have seen similar problems posted, but they were usually about splitting "OneName" fields into separate first and last name fields. Neither a forum search nor Help gave me an answer.
As always, your help is appreciated.
Tim