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

Home Posts Topics Members FAQ

Currency Text Box in Excel Form

I am attempting to have an entry on a form that will format the entry
to a currency amount.

For example, if the user types 3452, I would like the form to
store/display 34.52.

If the user types 99, I would like the form to store/display 0.99, or
..99.

Any suggestions as to how to go about this?

Thanks.

Dave

Jul 17 '05 #1
1 8571
Private Sub Text1_LostFocus() 'you may also test with Change event
on error resume next 'to avoid errors
text1.text=format(ccur("0" & text1.text),"#.##0,00") 'the "0" prefix is
to allow convertion to zero when text1 is empty
End Sub

Bye
Elef

"DaveA" <da*********@atk.com> ha scritto nel messaggio
news:11*********************@o13g2000cwo.googlegro ups.com...
I am attempting to have an entry on a form that will format the entry
to a currency amount.

For example, if the user types 3452, I would like the form to
store/display 34.52.

If the user types 99, I would like the form to store/display 0.99, or
.99.

Any suggestions as to how to go about this?

Thanks.

Dave

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1976
by: alien2_51 | last post by:
At some point after running this report the "Wholesale Price" column data type in the excel spread sheet changes from Currency to General... It seems to ba around the 300th or so row but varies......
2
9589
by: Dalan | last post by:
This should not be an issue, but it is. I'm sure that someone knows what little piece of code is needed too persuade Access 97 to include a currency format for labels (Avery, mailing type). Have...
1
1480
by: Michael | last post by:
Hi everyone. Thanks again in advance for any help I can get. I am running a function that runs a query and exports it to excel using DoCmd.TransferSpreadsheet acExport,...
2
6421
by: Baybars | last post by:
New to access, but to deja.com. Looked through many posts, but can not find a good post for my problem (I believe there is, but my access level didn't allow me to understand). I have a table for...
5
1553
by: Manuel Canas | last post by:
Hi there, I have a form with a couple of tabs on in and I'm filling the form from a dataset with the fill method. I am using a currency manager for binding controls with a datatable....
1
1557
by: zacks | last post by:
I am using the Microsoft Excel driver (DriverID 790) to process data in an Excel spreadsheet. One of the columns is money, but was orinally formatted as General. So a value in the spreadsheet of...
5
9612
by: Steven Smith | last post by:
Hi, I'm trying to write a simple program to print invoices for people I do work for. I've got a form with textboxes for descriptions and amounts for items, and some code for printing the...
5
2785
by: Paul Miller | last post by:
I'm looking at doing some currency calculations in some Python code integrated with a C++ application. I want to be able to come up with the same values I get in an Excel spreadsheet. I've been...
16
12032
by: Alexio | last post by:
Am new to javascript. I need to format the currency in the as numbers are entered in textboxes. I can format the currency in the calculations and display in the totals but can not figure out how to...
0
7120
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
7160
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
7196
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...
0
7373
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
4583
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
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1405
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
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
286
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.