Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calculator on the form ?

Status
Not open for further replies.

peljo

Technical User
Mar 3, 2006
91
BG
Does anybody know some referemce how to build a simple calculator on the form ?
 
You could use Shell and possibly AppActivate with the built-in calculator.

A very simple calculator can be created with two textboxes and Eval:

Text1: 2*3+4
Text2: 10 'Answer

Code:
Private Sub Text1_AfterUpdate()
Me.Text2 = Eval(Me.Text1)
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top