Solved

Wildcard in String

Posted on 2011-03-01
2
256 Views
Last Modified: 2012-05-11
Experts,

I want to write some code in an on exit event procedure that if my field "Job" has an ending of NCR it will change a check box "Closed" to true. I know the * can be used but I'm confused how to call it out. Something like this:

If Me.Job = Me.[Job] "*NCR" Then Me.Closed = True

Any help is always appreciated

0
Comment
Question by:NuclearOil
2 Comments
 
LVL 15

Expert Comment

by:derekkromm
ID: 35011715
If right(Me.Job.Text, 3) = "NCR"
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 35011717
if right(me.job,3)="NCR" then me.closed=true
0

Featured Post

Industry Leaders: 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

Suggested Solutions

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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…

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