473,698 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extracting parts of strings with query

I have recently imported several fields from a spreadsheet(exc el) 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 1496
Typo on second string
should read C:\diagrams\abc _1234.tiff

"bozdog" <ia*******@optu snet.com.au> wrote in message
news:41******** **************@ news.optusnet.c om.au...
I have recently imported several fields from a spreadsheet(exc el) 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*******@optu snet.com.au> wrote:
I have recently imported several fields from a spreadsheet(exc el) 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\ab c_123.tiff . (one of 4000)
D:\diagrams\ab c_1234.tiff
etc
to
C:\diagrams\ab c_123.tiff
D:\diagrams\ab c_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
1926
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 alphabetticaly in database. Any ideas how to right such a function thanks alfred
1
1941
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 below is working to a degree in IE7. As I have not yet parsed http.responseText, I am getting all the code in parts.php in the alert. My php script query creates two php arrays, one a single array and a two-dimensional array such as array. My...
4
2319
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: TECH_ACT=2HL91002:TGT_START=12-NOV-07:CAM_CODE=AKJBA:DA=HL:WBS=DES071702: I'd like to extract the element CAM_CODE=AKJBA but the string after the "=" sign can vary in length between rows. Does anyone have a code snippet in their library that might do this ... or is there a built-in function that I...
10
4074
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 Minutes.
0
8680
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7738
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.