473,418 Members | 2,074 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,418 software developers and data experts.

MODIFY A NUMERIC FIELD TO DECIMAL

hi all,

I want to do the following statement "ALTER TABLE TT ALTER COLUMN CC
DECIMAL (18,2)" but doesnīt work. Iīve tried it on differents ways
but keep not working.

I donīt know if I can do it with Ms Access.
Hope that someone may help me.

Juan

Nov 26 '05 #1
3 6014
"vellons" <ve************@hotmail.com> wrote in
news:11**********************@g47g2000cwa.googlegr oups.com:
hi all,

I want to do the following statement "ALTER TABLE TT ALTER COLUMN CC
DECIMAL (18,2)" but doesnīt work. Iīve tried it on differents ways
but keep not working.

I donīt know if I can do it with Ms Access.
Hope that someone may help me.

Juan


Assuming Version 2000 or greater:

CurrentProject.Connection.Execute _
"ALTER TABLE TT ALTER COLUMN CC DECIMAL(18,2)"

Typically DAO can't do JET 4.0 SQL Innovations but one can use OLEDB
through ADO to effect them.

This is because DAO is the natural, tightly-integrated technology for
Access/JET, faster and better in almost every way. HUH?

--
Lyle Fairfield
Nov 26 '05 #2

Lyle Fairfield ha escrito:
"vellons" <ve************@hotmail.com> wrote in
news:11**********************@g47g2000cwa.googlegr oups.com:
hi all,

I want to do the following statement "ALTER TABLE TT ALTER COLUMN CC
DECIMAL (18,2)" but doesnīt work. Iīve tried it on differents ways
but keep not working.

I donīt know if I can do it with Ms Access.
Hope that someone may help me.

Juan


Assuming Version 2000 or greater:

CurrentProject.Connection.Execute _
"ALTER TABLE TT ALTER COLUMN CC DECIMAL(18,2)"

Typically DAO can't do JET 4.0 SQL Innovations but one can use OLEDB
through ADO to effect them.

This is because DAO is the natural, tightly-integrated technology for
Access/JET, faster and better in almost every way. HUH?

--
Lyle Fairfield

Hi Lyle,
Thanks for your response,

By the way, I could know how to convert to decimal by a query what
create a new table using formatnumber ([field];2), but I donīt know
how to convert exactly this data_type (text) to numeric keeping 2
decimals and without rounding.

thanks a lot.
sorry about my english, i am from spain.

Nov 27 '05 #3
vellons wrote:
sorry about my english, i am from spain.


I'm sorry too; I had guessed USA.

Nov 27 '05 #4

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

Similar topics

3
by: Colin Graham | last post by:
Hi folks, Im having a bit of trouble here with a system i inherited and i now have to modify. Basically i need to create a javascript function that checks a field to only allow numbers...
5
by: David Garamond | last post by:
In Interbase and Firebird, NUMERIC is implemented as 64-bit integer. This limits the range to NUMERIC(18, *) but for many uses that's adequate. And moreover it's fast and efficient. Is there a...
3
by: Lars Netzel | last post by:
Hello! I have a Cell in a datagrid (a text cell) that is loaded from the database. The type in the databas on that field is "double" with 1 decimal. I have a style added to the cell that has...
3
by: Aaron Smith | last post by:
I found an quick and dirty example of a numeric text box that converts the string to a currency mask.. Here is the code: Public Class NumericMaskedTextBox Inherits System.Windows.Forms.TextBox ...
11
by: Pieter | last post by:
Hi, I'm having some troubles with my numeric-types in my VB.NET 2005 application, together with a SQL Server 2000. - I first used Single in my application, and Decimal in my database. But a...
2
by: Earl G via AccessMonster.com | last post by:
I have tried. But now I ask. I cannot get a control to accept a numeric entry (e.g. 0.23) without first entering a zero. I want to allow only two decimal places. But I would like numbers less...
3
by: George Eapen | last post by:
Hi all, i want to check whether a value entered into a specific html field is numeric as well as should contain one decimal value.( eg.23 is not accepted..It should be 23.0) i have come up with...
2
by: jgscott3 | last post by:
I have a query that simply totals a number of fields from a linked table. If I run it several times, it works fine for a couple of runs and then inexplicably returns a numeric field overflow error...
16
by: tshad | last post by:
I have a string field and a decimal fields and was wondering what the best way to check for numeric is? I have to do something like: If (myAmount is numeric) { total += myAmount; }
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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
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...

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.