Large Number in Access

cansevin
cansevin used Ask the Experts™
on
I am working on a project for my math students that deals with every large numbers... some up to 20 digits.

They enter a large number in a field (titled raw1). I made that field accept large numbers by changing the type to BLANK and the following AfterUpdate code: Me.raw1 = CStr(Me.raw1).

That is working great (thanks Ray!).

I then hit a button that will do a simple calculation with the number in raw1. It stores that number in a field called set1. How can I format set1 so it also can hold large numbers? This field is the only one that is stored on a table.

Finally after the correct number is stored in set1 (an on the table). A 2nd button does a simple calculation and the result shows up on in  a non-bound field called "show1". I need this field to be able to handle large numbers as well.

Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Commented:
set the data type of the field to TEXT..

you are doing calculation... is the data in Currency format?
show1 = format(val(set1),"#0")

Author

Commented:
Thanks coachman... where do I put that? After the formula on the button? Maybe after update event?
the click event of the second button

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial