![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have Access2010 and I use this for a Movie Titles database. I have already configured the a query to remove the "A" and "The" from the titles to allow easier sorting and reading. This is used as a source for a report. How can I put the "A" or the "The" at the end of the title string so as to make the title more readable? |
#3
| |||
| |||
|
|
I have Access2010 and I use this for a Movie Titles database. I have already configured the a query to remove the "A" and "The" from the titles to allow easier sorting and reading. This is used as a source for a report. How can I put the "A" or the "The" at the end of the title string so as to make the title more readable? Peter |
#4
| |||
| |||
|
|
It would help if you posted your method for removing A and The from the titles. It could probably be modified to move the A or The to the end of the title. John Spencer Access MVP 2002-2005, 2007-2010 The Hilltop Institute University of Maryland Baltimore County On 6/22/2011 11:39 PM, Peter Jason wrote: I have Access2010 and I use this for a Movie Titles database. I have already configured the a query to remove the "A" and "The" from the titles to allow easier sorting and reading. This is used as a source for a report. How can I put the "A" or the "The" at the end of the title string so as to make the title more readable? Peter |
#5
| |||
| |||
|
|
"Peter Jason" <pj (AT) jostle (DOT) com> skrev i en meddelelse news:s3d507dnsqj960lujmkbg62phpr4jf7827 (AT) 4ax (DOT) com... I have Access2010 and I use this for a Movie Titles database. I have already configured the a query to remove the "A" and "The" from the titles to allow easier sorting and reading. This is used as a source for a report. How can I put the "A" or the "The" at the end of the title string so as to make the title more readable? Goto a new field in ur query Write NewField: UrSortedField & "A" or & "The" Bjarne |
#6
| |||
| |||
|
|
"Peter Jason" <pj (AT) jostle (DOT) com> skrev i en meddelelse news:s3d507dnsqj960lujmkbg62phpr4jf7827 (AT) 4ax (DOT) com... I have Access2010 and I use this for a Movie Titles database. I have already configured the a query to remove the "A" and "The" from the titles to allow easier sorting and reading. This is used as a source for a report. How can I put the "A" or the "The" at the end of the title string so as to make the title more readable? Goto a new field in ur query Write NewField: UrSortedField & "A" or & "The" Bjarne |
#7
| |||
| |||
|
|
"Peter Jason" <pj (AT) jostle (DOT) com> skrev i en meddelelse news:s3d507dnsqj960lujmkbg62phpr4jf7827 (AT) 4ax (DOT) com... I have Access2010 and I use this for a Movie Titles database. I have already configured the a query to remove the "A" and "The" from the titles to allow easier sorting and reading. This is used as a source for a report. How can I put the "A" or the "The" at the end of the title string so as to make the title more readable? Goto a new field in ur query Write NewField: UrSortedField & "A" or & "The" Bjarne |
#8
| |||
| |||
|
|
"Peter Jason" <pj (AT) jostle (DOT) com> skrev i en meddelelse news:s3d507dnsqj960lujmkbg62phpr4jf7827 (AT) 4ax (DOT) com... I have Access2010 and I use this for a Movie Titles database. I have already configured the a query to remove the "A" and "The" from the titles to allow easier sorting and reading. This is used as a source for a report. How can I put the "A" or the "The" at the end of the title string so as to make the title more readable? Goto a new field in ur query Write NewField: UrSortedField & "A" or & "The" Bjarne |
#9
| |||
| |||
|
|
For the "The" case I use: Expr1: Replace([MovieNameEnglish],"The ","") |
|
And for the "A" case I use: Expr2: Replace([Expr1],"A ","") |
#10
| |||
| |||
|
|
Peter Jason wrote: For the "The" case I use: Expr1: Replace([MovieNameEnglish],"The ","") That will replace any occurence of "The" with an empty space, resulting in titles like "Phantom of Opera" and "Meet Fockers" And for the "A" case I use: Expr2: Replace([Expr1],"A ","") Same objection. Personally, I would create a VBA function to do this but it is possible with expressions: Expr1: iif(left([MovieNameEnglish],4)="The ",Mid([MovieNameEnglish],5) & ", The", [MovieNameEnglish]) Same idea for Expr2. Question: should you move "An " to the end of the title as well ("An Affair to Remember")? |
![]() |
| Thread Tools | |
| Display Modes | |
| |