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

How can I isolate a string out of another string??

Hello, I have 90000 rows of data in one column. I want to search
for a string in each line. There are random amount of characters
before the string I want to find. The string starts with the letter
"45" and I also know that after the letter V comes seven digits or
letters which I want to find also. After that string there are random
amount of characters. What kind of query I should create to find all
those strings within my data?
Thanks for your help beforehand
Sep 19 '07 #1
4 1914
Hello, I have 90000 rows of data in one column. I want to search
for a string in each line. There are random amount of characters
before the string I want to find. The string starts with the numbers
"45" and I also know that after "45" comes 8 digits or
letters which I want to find also. After that string there are random
amount of characters. What kind of query I should create to find all
those strings within my data?

Thanks for your help beforehand

--------------------------------------------------------------------------------
Sep 19 '07 #2
FishVal
2,653 Expert 2GB
Hi, there.

Take a look at "Like operator" in Access help.
Sep 19 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
I have merged both threads. Please do not double post questions as it causes problems and as such is against site rules.

ADMIN
Sep 19 '07 #4
ADezii
8,834 Expert 8TB
Hello, I have 90000 rows of data in one column. I want to search
for a string in each line. There are random amount of characters
before the string I want to find. The string starts with the letter
"45" and I also know that after the letter V comes seven digits or
letters which I want to find also. After that string there are random
amount of characters. What kind of query I should create to find all
those strings within my data?
Thanks for your help beforehand
Sorry, on my way to work and only had the time to find the String prior to the '45' for you. The Assumptions are: you Table name is tblTest, the Field containing the overall String is [SomeString], and the new Field containing the String you are looking for prior to the '45' is [Your_String] which is a Calculated Field:
Expand|Select|Wrap|Line Numbers
  1. SELECT tblTest.SomeString, Left$([SomeString],InStr([SomeString],"45")-1) AS Your_String
  2. FROM tblTest;
Sep 19 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Krakatioison | last post by:
My sites navigation is like this: http://www.newsbackup.com/index.php?n=000000000040900000 , depending on the variable "n" (which is always a number), it will take me anywhere on the site......
5
by: Stu Cazzo | last post by:
I have the following: String myStringArray; String myString = "98 99 100"; I want to split up myString and put it into myStringArray. If I use this: myStringArray = myString.split(" "); it...
9
by: John F Dutcher | last post by:
I use code like the following to retrieve fields from a form: recd = recd.append(string.ljust(form.getfirst("lname",' '),15)) recd.append(string.ljust(form.getfirst("fname",' '),15)) etc.,...
4
by: Garibaldi | last post by:
Folks, I'm having a bad regex day and can sure use your help, please.. I have a Regex expression that works fine. It's purpose is to isolate all data from the start of a string begining with...
6
by: Mehdi | last post by:
Hi, In my asp.net (C#) application I use javascript(i.e window.open('/MyApplication/home.aspx?userid=345', '', '')) to open another copy of my application in a new window. In global.asax I...
4
by: Jim Bradstreet | last post by:
Hi, I have a very large text file export of email messages from an email client. I've imported into access. It is not segregated in any way except by the message which contains, among...
3
by: HMS Surprise | last post by:
Greetings. Given the string s below and using only python built-in capabilities, I am trying to isolate the substring G132153. This string may have any number of digits but the pieces around it...
2
klarae99
by: klarae99 | last post by:
Hello, I am working in Access 2003 on an inventory database. Right now I am working on a report which will be used to fill in forms that our state requires periodically to collect taxes. Right...
3
by: afrotec2k | last post by:
Hi I am trying to extract data using SQL Server 2005 from a table on an ODBC linked server using the following syntax: select * from ... When I run the query the following message appears: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.