473,791 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1964
On 11 Dec 2006 19:36:47 -0800, st********@hotm ail.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********@hotm ail.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********@hotm ail.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
872
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 tokenize the comma separated values.I used strtok function reading line by line using fgets.but it gives some weird behavior.It doesnot stripout the "" fully.Could any body have sample code for the same so that it will be helfful for my...
7
8872
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 want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and save it to the user's machine. I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
11
6603
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 where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
22
19625
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 tokenize the comma separated values.I used strtok function reading line by line using fgets.but it gives some weird behavior.It doesnot stripout the "" fully.Could any body have sample code for the same so that it will be helfful for my...
0
9669
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
9515
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
10426
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10154
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9029
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...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
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();...
1
4109
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

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.