?
Solved

access query

Posted on 2014-01-28
6
Medium Priority
?
244 Views
Last Modified: 2014-01-28
I would like to find strings that do not start with any letter from a to z in the thrid position

JS13G111 would need the 3 removed
JS16G111 woul;d need the 6 removed and so on

not sure how to do that.

am working in query grid of access 365
0
Comment
Question by:PeterBaileyUk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 39814403
You may try this:

Needed: Left([TestField],3) & Right([TestField],4)

Sincerely,

Ed
0
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 39814406
This may not be the solution you want but this is what I think the quickest approach. See the image attached.

Sincerely,

Ed
sample.jpg
0
 

Author Comment

by:PeterBaileyUk
ID: 39814420
flipping the test cases this:
this                        became this
JS1BG112        JS1G112

in this case it should have done nothing

JS16R7DB    

Instead of removing the character could it just flag the issue

JS16R7DB  so it would say here

numeric exists in 4th position
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 52

Accepted Solution

by:
Rgonzo1971 earned 2000 total points
ID: 39814423
Hi,

pls try

Expr: IIf(Not (IsNumeric(Mid([Field1],4;1))),[Field1],Left([Field1],3) & Right([Field1],Len([Field1])-4))

Open in new window

Regards
0
 

Author Comment

by:PeterBaileyUk
ID: 39814429
I was jsut experimenting with similar: Expr3: IsNumeric(Mid([expr1],4,1))
0
 

Author Comment

by:PeterBaileyUk
ID: 39814437
corrected the small typo ";" in mid but works a treat thankyou
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Suggested Courses

764 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