473,394 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Changing from text to currency and number error?

Hello,
I am new to Microsoft access 2007 and I have created a new database.
There is a dollar about that I have to change from text to currency
format.
Also, there is a zip code that I have to change from text to number
format.
When I try to change them from text to either currency or number
format I get an error stating "Some data may be lost" The setting for
the FieldSize property of one or more fields have been changed to a
shorter size. If the data is lost, validation rules may be violated
as a result. Do you want to continue anyway? Any feedback would be
greatly appreciated.
Thanks,
Brian
Jun 27 '08 #1
1 4254
Hi Brian

Check the field length of the original character field. You probably are
not storing long
strings of numbers but access doesn't know that. If there is a lot of data
and you are concerned
about losing any data, create a new field as currency and fill it from the
old field with
a query. When you are satisfied that the data went over correctly you can
delete the old field.

As to converting the zipcode field to a number - Don't! Many zipcodes are
zero led like "02172".
If you make that a numeric field the leading zero will disappear. Besides
you do not do math with zipcodes
so why make it numeric.

Regards

Kevin

"Brian" <ma*******@gmail.comwrote in message
news:89**********************************@f36g2000 hsa.googlegroups.com...
Hello,
I am new to Microsoft access 2007 and I have created a new database.
There is a dollar about that I have to change from text to currency
format.
Also, there is a zip code that I have to change from text to number
format.
When I try to change them from text to either currency or number
format I get an error stating "Some data may be lost" The setting for
the FieldSize property of one or more fields have been changed to a
shorter size. If the data is lost, validation rules may be violated
as a result. Do you want to continue anyway? Any feedback would be
greatly appreciated.
Thanks,
Brian

Jun 27 '08 #2

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

Similar topics

1
by: MickG | last post by:
I am trying to change the value of the variable "hard" according to which radio button is pressed and I am having no joy. Could anyone help me with this, the problematic section is marked with...
3
by: Dalan | last post by:
Is there any code available to address currency rounding problems in Access 97? Apparently, selecting currency type table fields does not resolve the problem. For instance, in my form I have a...
3
by: Caesar Augustus | last post by:
Hello Tom, Long time listener, first time caller... I have been working with vb code to automate a salary increase process that not only rounds to the nearest penny but also rounds to the...
2
by: Todd_M | last post by:
I was wondering what anyone might suggest as "best practice" patterns for streaming out fixed formatted text files with C#? Let's say we get our data in a dataset table and we need to iterate over...
32
by: deko | last post by:
I have a popup form with a textbox that is bound to a memo field. I've been warned about memo fields so I'm wondering if I should use this code. Is there any risk with changing the form's...
5
by: Nonoize | last post by:
Hi all, Really dumb question but I don't know how to resolve it. Looked in help and evry book I have. I have a table where the primary key was set as an Integer and its reached over 140K...
16
by: xjohnx | last post by:
Hi, I'm hoping someone can help me I am quite new to Javascript and have had to create a programme which converts dollars into euros and vice versa, here is my script which is working var...
6
by: BerkshireGuy | last post by:
On an unbound form, I have a combobox called 'cboproducttype' and a text box called 'txtamountappliedfor'. I have an Add button that I would like the user to be able to hit once a product and...
2
by: mahesh123 | last post by:
Hi Folks, I am information regarding the Changing the Indian Currency to USD Currency. How can we change the Indian Currency to USD Currency. For example if the Indian Currency is 100 rs then the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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,...

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.