473,408 Members | 2,535 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,408 software developers and data experts.

Extracting parts of strings with query

I have recently imported several fields from a spreadsheet(excel) and wish
to update a field using an update query. The particular field is imported as
a text string and defines a path for a particular graphic file. Each field
is unique and there are approximately 4000 records.A typical string I wsh to
edit is as follows

D:\diagrams\abc_123.tiff . (one of 4000)
D:\diagrams\abc_1234.tiff
etc
to
C:\diagrams\abc_123.tiff
D:\diagrams\abc_1234.tiff

Any help appreciated
Nov 13 '05 #1
2 1462
Typo on second string
should read C:\diagrams\abc_1234.tiff

"bozdog" <ia*******@optusnet.com.au> wrote in message
news:41**********************@news.optusnet.com.au ...
I have recently imported several fields from a spreadsheet(excel) and wish
to update a field using an update query. The particular field is imported as a text string and defines a path for a particular graphic file. Each field
is unique and there are approximately 4000 records.A typical string I wsh to edit is as follows

D:\diagrams\abc_123.tiff . (one of 4000)
D:\diagrams\abc_1234.tiff
etc
to
C:\diagrams\abc_123.tiff
D:\diagrams\abc_1234.tiff

Any help appreciated

Nov 13 '05 #2
"bozdog" <ia*******@optusnet.com.au> wrote:
I have recently imported several fields from a spreadsheet(excel) and wish
to update a field using an update query. The particular field is imported as
a text string and defines a path for a particular graphic file. Each field
is unique and there are approximately 4000 records.A typical string I wsh to
edit is as follows

D:\diagrams\abc_123.tiff . (one of 4000)
D:\diagrams\abc_1234.tiff
etc
to
C:\diagrams\abc_123.tiff
D:\diagrams\abc_1234.tiff

Any help appreciated

If the table is tblPath and the first field name is Path1 then Path
2 is given by:

SELECT "C"+Right([Path1],Len([Path1])-1) AS Path2
FROM tblPath;

--
»«»«»« Graham »«»«»«
Nov 13 '05 #3

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

Similar topics

3
by: Alfred | last post by:
Hi I would like to extract only 15 records at a time from the backend in alfabetic order. Click on a button and then the next 15. Reason data must come over a 56k modem. The data is not...
1
by: rpjd | last post by:
I am completely new to this so please bear with me here. My project involves a webpage executing php scripts via an xmlhttprequest which queries a database and returns data to the webpage. This code...
4
by: Keith Wilby | last post by:
On a bit of a no-brainer with this. I have a field containing composite data which is imported from another system. Here's a sample: ...
10
by: Dan | last post by:
I have a number of strings that represents time. 1w 2d 3h 15m 2d 3h 15m 4h 30m 45m I want to extract the number parts of my strings into separate variables for Weeks, Days, Hours and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.