473,506 Members | 16,954 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calculator

1 New Member
Hi. I wanted to create a calculator with ms access that works both on click and when pressing the key on keyboard and I have no idea on how to. Can you show me or send a video please?
May 18 '22 #1
3 8494
isladogs
457 Recognized Expert Moderator Contributor
Creating a calculator in Access is likely to be a lot of work and require a good knowledge of VBA coding.
But why reinvent the wheel?
I suggest that you instead use code to open the built-in Windows calculator from Access

Expand|Select|Wrap|Line Numbers
  1. Call Shell("CALC.EXE", 1)
May 18 '22 #2
NeoPa
32,557 Recognized Expert Moderator MVP
Hi Elias.

The short answer to your question is "No. We cannot." Doing your work for you is not what Bytes.com is about or for. We are happy to assist you in developing your own solutions, and sometimes we can point you to somewhere that should be helpful for you. We do not though, simply perform requests for work. Even if we wanted to the site rules forbid it, as we're here to help and doing it for you only encourages you not to do any work for yourself.

While my fellow moderator isladogs has already pointed out that doing this within Access is fairly pointless, we would be happy to help you through developing such a project if you still feel you'd like to. The process itself could be helpful as you'd learn about handling various Events and other management of Forms.

Let us know if you plan to proceed by telling us what you've already tried and where you've got stuck.

Otherwise, of course, isladogs' suggestion is a very simple and effective one ;-)
May 18 '22 #3
ADezii
8,834 Recognized Expert Expert
I have attached a Demo for you straight out of the Access 2002 Developers Handbook, IMHO one of the best references ever created for Microsoft Access. It demonstrates a fully functional, purely Access based Calculator (Mouse & Keyboard activated) and consists of only a single Form (frmCalc) and Standard Code Module (basCalc). All extraneous Objects have been removed. It is rather simplistic, but an excellent starting point for you to learn how this can be done. It also can easily be expanded to include additional, more complex, functionality. The Code may be a little tough to process for a beginner but give it a try and be patient. Should you have any questions, we are here to help.

P.S. - I did get prior authorization from my old pal NeoPa to Upload this Demo.
Attached Files
File Type: zip Calc.zip (48.4 KB, 74 views)
May 21 '22 #4

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

Similar topics

6
7291
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
5193
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
2067
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
15117
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
6285
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
3987
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...
3
11831
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
2878
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
5815
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....
6
9465
by: Otekpo Emmanuel | last post by:
In this article, am going to talk about Pure HTML, JavaScript and CSS why designing calculator. What I used for this calculator design is a popular application that follows all systems. So, you need...
0
7103
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7307
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7021
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7478
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5035
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1532
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.