473,320 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

calculator

lee123
556 512MB
hi there i have been working on a form and i have everthing finished except a calculator i put on it but i surfed the web on how i can get the calculator to work but had no such luck i can't find the vb code to do this anywhere on the cal culator i have buttons (1-9 and a zero button) for the #10 i have a ( +,-,/ )and i have a (enter) button and a ( blank lable for the number go in) this is just a simple calculator for work i have put this on my order form to figure out different cost of things, we rent. what can i do to make this work.
Apr 6 '07 #1
10 3907
missinglinq
3,532 Expert 2GB
There's a sample db by a gentleman named Ricky Hicks that does just this at the link below. You have to scroll about halfway down the page. It called , I think, Calculator Database. Must have been a committee decision!

http://www.candace-tripp.com/pages/access_downloads.aspx
Apr 6 '07 #2
lee123
556 512MB
yea i went ther and it said you are trying to open .....something the it said read only. but when i clicked ok the screen was blank so is there another site or can someone help me
Apr 7 '07 #3
yea i went ther and it said you are trying to open .....something the it said read only. but when i clicked ok the screen was blank so is there another site or can someone help me
The same thing happened to me, but you have to unzip the file first, and convert it unless you're using Access 97. Works great, anyways!

-Cody-
Apr 7 '07 #4
ADezii
8,834 Expert 8TB
hi there i have been working on a form and i have everthing finished except a calculator i put on it but i surfed the web on how i can get the calculator to work but had no such luck i can't find the vb code to do this anywhere on the cal culator i have buttons (1-9 and a zero button) for the #10 i have a ( +,-,/ )and i have a (enter) button and a ( blank lable for the number go in) this is just a simple calculator for work i have put this on my order form to figure out different cost of things, we rent. what can i do to make this work.
Why not incorporate the most popular Calculator of all time into your application (Windows Calculator) complete with Help support:
__1. Copy Calc.exe, Calc.hlp, and Calc.chm into your Database Directory.
__2. In the Click() Event of a Command Button:
Expand|Select|Wrap|Line Numbers
  1. Dim retVal
  2. retVal = Shell(CurrentProject.Path & "\Calc.exe", vbNormalFocus)
Apr 7 '07 #5
missinglinq
3,532 Expert 2GB
I started to suggest Windows calculator, but thought he might want to feed a field on his form with the results and thought a bultin calculator would make this easier. Is there a way to do this with Calculator?
Apr 7 '07 #6
ADezii
8,834 Expert 8TB
I started to suggest Windows calculator, but thought he might want to feed a field on his form with the results and thought a bultin calculator would make this easier. Is there a way to do this with Calculator?
No known way that I am aware of.
Apr 7 '07 #7
Rabbit
12,516 Expert Mod 8TB
Seems to me it would be easy enough to store the user input in a string and then call eval() when they hit enter.
Apr 7 '07 #8
ADezii
8,834 Expert 8TB
Seems to me it would be easy enough to store the user input in a string and then call eval() when they hit enter.
There would be no way to analyze values entered into Calculator from the Access Application. The only possible method would be via some variant on OLE Automation which Calculator would not recognize.
Apr 8 '07 #9
Rabbit
12,516 Expert Mod 8TB
There would be no way to analyze values entered into Calculator from the Access Application. The only possible method would be via some variant on OLE Automation which Calculator would not recognize.
I was talking about creating your own calculator.
Apr 8 '07 #10
missinglinq
3,532 Expert 2GB
Which was the whole point to my first post here, pointing Lee123 to Ricky Hicks download! The code for this calculator is fairly easy as these things go and it should be simple to assign the results to the textbox i question!
Apr 8 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Rafael | last post by:
Hi Everyone, I need some help with my calculator program. I need my program to do 2 arguments and a 3rd, but the 3rd with different operators. Any help would be great. Here is my code.... ...
3
by: Paul | last post by:
I want to make a simple calculator program but dont know where to get started. This is not GUI but a simple terminal program. It would get input like this Enter number: 5 + 10
3
by: Art | last post by:
Hi, In part of my application the user may need to do a simple arithmetic calculation in order to get the value to put in a text box. I was thinking that it would be good if I could display the...
3
by: PieMan2004 | last post by:
Hi, ive been looking for a solid java community to help me when im tearing out my hair :) Basically ive constructed a GUI that has to represent the same look and functions of the typical windows...
24
by: firstcustomer | last post by:
Hi, Firstly, I know NOTHING about Javascript I'm afraid, so I'm hoping that someone will be able to point me to a ready-made solution to my problem! A friend of mine (honest!) is wanting to...
19
by: TexasNewbie | last post by:
This was originally just a calculator without a decimal point. After I added the decimal, it now tells me invalid second number. //GUI Calculator Program import javax.swing.*; import...
5
Deathwing
by: Deathwing | last post by:
Hi everyone one I'm playing around with trying to make an expense calculator. I would like it so that the user can keep enter expenses until they have no more expenses. Then I would like for the...
3
by: itsmichelle | last post by:
This is a very primative code of a java swing calculator. I have assigned all the number buttons and the operator buttons and I can add, subtract, multiply, and divide two numbers together. However,...
3
by: mandy335 | last post by:
public class Calculator { private long input = 0; // current input private long result = 0; // last input/result private String lastOperator = ""; // keeps track of...
0
Curtis Rutland
by: Curtis Rutland | last post by:
Have any of you ever used a Reverse Polish Notation calculator? I did in high school. It was easily the best calculator ever (the HP=32SII). RPN is great, because you don't have to use parenthesis....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.