Solved

Large Number in Access

Posted on 2014-03-05
4
396 Views
Last Modified: 2014-03-07
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!
0
Comment
Question by:cansevin
  • 2
4 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 39908139
set the data type of the field to TEXT..

you are doing calculation... is the data in Currency format?
0
 
LVL 7

Accepted Solution

by:
COACHMAN99 earned 500 total points
ID: 39908300
show1 = format(val(set1),"#0")
0
 

Author Comment

by:cansevin
ID: 39908307
Thanks coachman... where do I put that? After the formula on the button? Maybe after update event?
0
 
LVL 7

Expert Comment

by:COACHMAN99
ID: 39908308
the click event of the second button
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

Suggested Solutions

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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