Solved

access query

Posted on 2014-01-28
6
241 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 51

Accepted Solution

by:
Rgonzo1971 earned 500 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

726 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