Solved

Large Number in Access

Posted on 2014-03-05
4
419 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
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…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

752 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