Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / November 2006

Tip: Looking for answers? Try searching our database.

Parsing text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cherman - 15 Nov 2006 17:53 GMT
I'm trying to parse the following text to pull out the course info, which is
to the right of "below:" within the text. We can say the text value is
assigned to a variable called CourseInfo. There is always at least 1 space
between "below:" and the begninning of the course info, so I might need to
use Trim to drop the spaces.

"Please rate yourself based on the class listed below:    PLN0010: Sales
Orders"

Much thanks,
Clint
fredg - 15 Nov 2006 18:23 GMT
> I'm trying to parse the following text to pull out the course info, which is
> to the right of "below:" within the text. We can say the text value is
[quoted text clipped - 7 lines]
> Much thanks,
> Clint

So if I understand you correctly, from the sentence below, you wish to
return
"PLN0010: Sales Orders"

SomeVariable = Trim(Mid(SomeText,InStr(SomeText,"below:")+7))

Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

cherman - 15 Nov 2006 18:43 GMT
Perfect! Thanks.

> > I'm trying to parse the following text to pull out the course info, which is
> > to the right of "below:" within the text. We can say the text value is
[quoted text clipped - 13 lines]
>
> SomeVariable = Trim(Mid(SomeText,InStr(SomeText,"below:")+7))
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.