473,394 Members | 1,878 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,394 software developers and data experts.

VBA Access Parse out Strings in Text Strings

I have a table (tblVAS) that contains a field called VAS (Value Added
Servies). This field is imported from an AS/400 and the filed contains
several codes that relate to Value Added Services. The problem is that
they are not ALWAYS seperated with a space, but sometimes are.

I am in need of query the field and matching up the codes to the
actually description in another table. example

VAS coloum in tblVAS may have the following

GOHSLBL MSRPCLIPHTAG

in another table (tblDesc) I have the the code and the description like
so:

GOH - Goes on Hanger
SLBL - Soccer Lift etc...
MSRP- Manufactor Sugesste etc
CLIP - etc

Not all records in the tblVAS will have all the VAS codes in the
string. I need to parse out the ones it has. I hope this makes sense.
But I can not figure out out to parse out all the codes in the VAS
column of tblVAS.

Any help is appreciated.

Thanks,

Dave

Dec 12 '06 #1
3 1952
On 11 Dec 2006 19:36:47 -0800, st********@hotmail.com wrote:

The AS/400 people probably can help you by revising their export
routine. Take that route first.

-Tom.

>I have a table (tblVAS) that contains a field called VAS (Value Added
Servies). This field is imported from an AS/400 and the filed contains
several codes that relate to Value Added Services. The problem is that
they are not ALWAYS seperated with a space, but sometimes are.

I am in need of query the field and matching up the codes to the
actually description in another table. example

VAS coloum in tblVAS may have the following

GOHSLBL MSRPCLIPHTAG

in another table (tblDesc) I have the the code and the description like
so:

GOH - Goes on Hanger
SLBL - Soccer Lift etc...
MSRP- Manufactor Sugesste etc
CLIP - etc

Not all records in the tblVAS will have all the VAS codes in the
string. I need to parse out the ones it has. I hope this makes sense.
But I can not figure out out to parse out all the codes in the VAS
column of tblVAS.

Any help is appreciated.

Thanks,

Dave
Dec 12 '06 #2
I shouldn't have said imported. I'm actually querying for this based
on an order number. The query returns all SCC that have VAS Codes,
but I can't read the string as is and I dont have access to the RPG
programmer so I was hoping there was some sort of VBA trick to do this.
But its beyond me :-(

Tom van Stiphout wrote:
On 11 Dec 2006 19:36:47 -0800, st********@hotmail.com wrote:

The AS/400 people probably can help you by revising their export
routine. Take that route first.

-Tom.

I have a table (tblVAS) that contains a field called VAS (Value Added
Servies). This field is imported from an AS/400 and the filed contains
several codes that relate to Value Added Services. The problem is that
they are not ALWAYS seperated with a space, but sometimes are.

I am in need of query the field and matching up the codes to the
actually description in another table. example

VAS coloum in tblVAS may have the following

GOHSLBL MSRPCLIPHTAG

in another table (tblDesc) I have the the code and the description like
so:

GOH - Goes on Hanger
SLBL - Soccer Lift etc...
MSRP- Manufactor Sugesste etc
CLIP - etc

Not all records in the tblVAS will have all the VAS codes in the
string. I need to parse out the ones it has. I hope this makes sense.
But I can not figure out out to parse out all the codes in the VAS
column of tblVAS.

Any help is appreciated.

Thanks,

Dave
Dec 12 '06 #3
st********@hotmail.com wrote:

If you wrote down very clearly what you would like to happen it would
help me.

I know that

GOHSLBL MSRPCLIPHTAG

is the input.

I know that criteria include GOH, SLBL etc.

But I don't know what you want.

Does input contain criterion x? That's pretty simple. So I'm guessing
it's something else.

How many criteria does input contain?

What are the members of an array or list of all the critera contained
in input?

Something else?

If you wrote down very clearly what you would like to happen it might
even help you

By the way, isn't "GOHSLBL MSRPCLIPHTAG" what that girl who did those
funny things in the back of the bus on our high school field trips
always saying?

Dec 12 '06 #4

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

Similar topics

22
by: Ram Laxman | last post by:
Hi all, I have a text file which have data in CSV format. "empno","phonenumber","wardnumber" 12345,2234353,1000202 12326,2243653,1000098 Iam a beginner of C/C++ programming. I don't know how to...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
22
by: Ram Laxman | last post by:
Hi all, I have a text file which have data in CSV format. "empno","phonenumber","wardnumber" 12345,2234353,1000202 12326,2243653,1000098 Iam a beginner of C/C++ programming. I don't know how to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.