Solved

Copy last 2 digits of a cell

Posted on 2014-01-29
3
216 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
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.

813 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

16 Experts available now in Live!

Get 1:1 Help Now