Solved

How do I locate the position of character in a string in Access?

Posted on 2011-02-15
3
937 Views
Last Modified: 2012-05-11
I have a string in a field: "MS Steven, Middletown, Chicago, US"

How do I detect the position of last occuring ","? <--that one behind Chicago?
I know Instr function, but how do i detect in a reverse order?
0
Comment
Question by:hkgal
  • 2
3 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 34898319
you will use
instrrev(str,"?")
0
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 34898334

instrrev("MS Steven, Middletown, Chicago, US",",")
0
 

Author Closing Comment

by:hkgal
ID: 34898377
NICE
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now