Solved

Large Number in Access

Posted on 2014-03-05
4
387 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 119

Expert Comment

by:Rey Obrero
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

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…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

911 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

15 Experts available now in Live!

Get 1:1 Help Now