Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pulling info from Memo Fields

Status
Not open for further replies.

JohnEck

Programmer
Aug 21, 2001
103
US
I need to pull some information out of a memo field. I need to take every thing after the string "Expired Info". Does anyone know how to find the position of a string in a memo field. I tried InStr and get 0.00 every time. Yes this is in CR 9.0 so it should be able to deal with Memo fields.

Thanks John
 
I don't have 9 to text, but if you're using a SQL database, you might consider doing this in the SQL or using a SQL Expression.

In SQL Server you'd use:

substring(somememo, charindex('Expired Info',somememo)+12,1000)

Change the 1000 to whatever length you need.

-k
 
Thanks, I found the problem. The InStr formula in CR 9 must be case sensitive. When we used UPPER CASE letters like whats in the field it worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top