473,324 Members | 2,511 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Title with "The" in the beginning

I have a table (tbl_Titles) where several records (tbl_Titles.Title)
that start with "The ...". I'd like to convert this to "..., The".

How can this be done with an update query?

Nov 13 '05 #1
2 1179
I believe this will work, but haven't tested it.

Update Table1 Set Table1.Field1 = Mid([Table1].[Field1], 5) & ", The" Where
Left([Table1].[Field1], 4) = "The "

Check the first 4 characters (including the space after the) so that you
don't also catch other words that begin with "the".

--
Wayne Morgan
MS Access MVP
"Soundneedle" <so*********@hotmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
I have a table (tbl_Titles) where several records (tbl_Titles.Title)
that start with "The ...". I'd like to convert this to "..., The".

How can this be done with an update query?

Nov 13 '05 #2
Thanks Wayne! I'll work with that....

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Steven T. Hatton | last post by:
I came across this title while looking for something fairly unrelated (UML diagrams for C++ templates). The review quoted below is solidly positive. I'm not going to be able to run out an buy the...
4
by: John Baker | last post by:
Hi: I have a query which supports a form. Te form is used to edit, update and change records in the table the query is based on. It all works fine EXCEPT that the "New" record (blank updatable...
5
by: Andrew Connell | last post by:
I can't find any documentation for the tilde (~) when it's found at the beginning of a string in a URL. Is that something that points back to the root of the site?
5
by: heat | last post by:
Hello, I started to play with asp.net 2.0, I love the new menu control. Right now I'm trying to get rid of the arrow that shows up when you have a sub-menu. How can I do this??? Thanks ...
9
by: Emanuele Aina | last post by:
I have some code which does a lot of "in" on lists containing objects with no __eq__ defined. It all goes fast until I add the __lt__() method: then I have a slowdown comparable to the one I get...
32
by: Licheng Fang | last post by:
Basically, the problem is this: 'do' Python's NFA regexp engine trys only the first option, and happily rests on that. There's another example: 'oneself' The Python regular expression...
4
by: Julek | last post by:
Hi, I wanted to know, if there is guarantee that a specific variable is always the same number of bytes forward than the beginning of the struct/class. Example: class MyClass { .... int var;...
0
by: Maric Michaud | last post by:
Le Friday 27 June 2008 18:26:45 Christian Heimes, vous avez écrit : That said, "f.tell() == 0" and "f.tell() != 0" should be written "f.tell()" and "not f.tell()" in python. if not f.tell() :...
1
by: Nag81 | last post by:
Hi All, Please help me out with this, I have a column with the data ".0.7657", now I have to remove "." present only at the beginning of the data and I have to retain the other "."...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.