473,473 Members | 2,131 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How can I create a calculator using form in MS Access???

1 New Member
Well I dont know if this is of any help but here it goes:

I put a text box (Text3) and 16 command buttons.

For each commandbutton I entered a code, like this:

1 --> Text3 = "1"
2 --> Text3 = "2"

And so it goes... but I have some problems. When I press a number (button) and then press another one to make a multi-digit number (like 23 or w/e) the first one I pressed erases kinda like this:

press 2 --> 2
then press 3 to make 23 --> 3

And I need the functions' codes too!!!! AHHHHH I'm sorry but this is a hw thats worth 20 points and i haven't figure out much
Mar 12 '08 #1
1 8459
kadghar
1,295 Recognized Expert Top Contributor
Well I dont know if this is of any help but here it goes:

I put a text box (Text3) and 16 command buttons.

For each commandbutton I entered a code, like this:

1 --> Text3 = "1"
2 --> Text3 = "2"

And so it goes... but I have some problems. When I press a number (button) and then press another one to make a multi-digit number (like 23 or w/e) the first one I pressed erases kinda like this:

press 2 --> 2
then press 3 to make 23 --> 3

And I need the functions' codes too!!!! AHHHHH I'm sorry but this is a hw thats worth 20 points and i haven't figure out much
^.^ quite a common problem
instead of writing this in the click event of the command button:
Expand|Select|Wrap|Line Numbers
  1. textbox1.text = "2"
you should write this
Expand|Select|Wrap|Line Numbers
  1. textbox1.text = textbox1.text & "2"
HTH
Mar 12 '08 #2

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

Similar topics

2
by: Terry | last post by:
I have cerated a Form, ExamsFrm, which is used to input details of exams taken at several Centres. It dosplays details from StudentTbl and has a SubForm which displays details from ExamsTble. I...
2
by: Jim | last post by:
I am a FoxPro programmer. What software do I need to program using MS access... I have apps that are non-web standalone and some web based... Do you recommend any learning resources? ...
5
by: M Wells | last post by:
Hi All, Is it possible to use form criteria in a query / view in an Access 2003 ADP with SQL Server as the backend? ie something like: select * from mytable where recid = forms!! I'm...
0
by: Qajussi | last post by:
Hi! I am trying to create data entry forms like MS access forms using asp.net. I am talking about a form like MS access forms which let you enter a new record, edit, navigate to previous and next...
1
by: regelcom | last post by:
My son is trying to create an about form button for a form he has already created. Any help would be great. Thanks
1
by: Neeraj | last post by:
hi I want to make clone of current Form which is currently seen.I Used attribute above the class declaration which extends Form. Impleament the ICloneable interface and Make method which code is...
0
Kosal
by: Kosal | last post by:
Hi Please help me to create AdRotator using Database Access in ASP.NET if everyone can because I don't know how to create table AdList in access and how to contect to access and get data from...
6
by: anurathna1971 | last post by:
1.create a registration form in vb in which first name,last name,username,password and confirm password fields should not be left blank and email address should contain@symbol. 2.design a form...
6
by: mercout | last post by:
Hey, I've been trying to create a search form in access for a while now, searching through books and emails. I have the search form set up with 11 combo box's, 3 text box's, a view button, and a...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.