Calculator (1 Viewer)

Gismo

Registered User.
Local time
Today, 20:46
Joined
Jun 12, 2017
Messages
1,298
Hi all,

Is there an easy way to create a calculator on a form?
 

June7

AWF VIP
Local time
Today, 09:46
Joined
Mar 9, 2014
Messages
5,492
No (depending on your perception). But, yes, can be done. This is a fairly common topic.
 
Last edited:

CJ_London

Super Moderator
Staff member
Local time
Today, 18:46
Joined
Feb 19, 2013
Messages
16,665
you mean with 10 number buttons plus multiply/divide/add/subtract?

if so, what is wrong with using the built in windows calculator?

if you mean for user to type in a calculation, use the eval function

?eval("(23*2)+55")
101
 

Ranman256

Well-known member
Local time
Today, 13:46
Joined
Apr 9, 2015
Messages
4,337
click windows start,
type: calculator, enter.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 13:46
Joined
Feb 19, 2002
Messages
43,475
@bastanu That calculator, like many other add-ins was never upgraded to support 64-bit Office
 

bastanu

AWF VIP
Local time
Today, 10:46
Joined
Apr 13, 2010
Messages
1,402
I never needed one, just did a Google search and posted some of the results...
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 13:46
Joined
Feb 19, 2002
Messages
43,475
That's fine. Just pointing out that it sadly, has an expiration date unless the developer chooses to recompile it. I can't imagine that it takes much to convert from 32-bit to 64-bit. If the app is using API code the definitions need to change as they do with Access.
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 13:46
Joined
May 21, 2018
Messages
8,605
I think I have a few examples at home using just native Access controls (no API). I assume you do not want the built in calculator, since you want the value from the calculation to appear in the control that called the calculator. That is what these do.
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 13:46
Joined
May 21, 2018
Messages
8,605

Gismo

Registered User.
Local time
Today, 20:46
Joined
Jun 12, 2017
Messages
1,298
I can use the built in windows calculator but some of the staff don't really have much computer literacy, so having the calculator on the same form where a few values needs to be added, will make it much easier for the user, instead of having to open up the windows calculator, just a preference
 

Gasman

Enthusiastic Amateur
Local time
Today, 18:46
Joined
Sep 21, 2011
Messages
14,445
I can use the built in windows calculator but some of the staff don't really have much computer literacy, so having the calculator on the same form where a few values needs to be added, will make it much easier for the user, instead of having to open up the windows calculator, just a preference
Why not just have a button that opens the windows calculator? Seems like a lot of work, for such a simple task? :(

 

MajP

You've got your good things, and you've got mine.
Local time
Today, 13:46
Joined
May 21, 2018
Messages
8,605
Sorry forgot the attachment. Demo again.
 

Attachments

  • PopUpCalculator.accdb
    692 KB · Views: 110

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 01:46
Joined
May 7, 2009
Messages
19,246
you can also put the "calculation" directly to the textbox like in the demo.
 

Attachments

  • CalcuOnTextbox.accdb
    436 KB · Views: 102

Users who are viewing this thread

Top Bottom