Solved

Copy last 2 digits of a cell

Posted on 2014-01-29
3
209 Views
Last Modified: 2014-01-29
When I check marked is checked I would like it to save the last 2 digits from a field onto another field.

The field RawNumber will have the number in it. Such as 541248

When the check marked is checked, I'd like to the last two digits (in this case "48") to be stored in the field "Last2"

Thanks!
0
Comment
Question by:cansevin
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Gozreh earned 500 total points
ID: 39818485
Last2=Right([RawNumber],2)
0
 

Author Comment

by:cansevin
ID: 39818575
It works.. but only if the number is a small number. If it is more than 10 digits, it doesn't work. Any idea why? The field "rawnumber" isn't attached to a table field at all.
0
 
LVL 10

Expert Comment

by:Gozreh
ID: 39818618
It should work, maybe show your sample
Copy-last-2-digits-of-a-cell.accdb
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

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

914 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

19 Experts available now in Live!

Get 1:1 Help Now