PC Review


Reply
Thread Tools Rate Thread

Change field form Long to Double Precision

 
 
Henrootje
Guest
Posts: n/a
 
      2nd Apr 2007
is there a way, using code, to change all of the numeric fields in a
database (preferrably in selected tables but not necessarily so) form
Long to DOuble Precision?


Greetings,

Henro Veijer

 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      2nd Apr 2007
Execute a DDL query statement to change the field type, e.g.:
ALTER TABLE MyTable ALTER COLUMN MyField DOUBLE;

Introduction to DDL, and example:
http://allenbrowne.com/func-DDL.html#ModifyFieldDDL

List of the names to use in DDL, compared to the names in the Access
interface:
http://allenbrowne.com/ser-49.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Henrootje" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> is there a way, using code, to change all of the numeric fields in a
> database (preferrably in selected tables but not necessarily so) form
> Long to DOuble Precision?
>
>
> Greetings,
>
> Henro Veijer


 
Reply With Quote
 
Henrootje
Guest
Posts: n/a
 
      3rd Apr 2007
Thanks Allen



On 2 apr, 17:30, "Allen Browne" <AllenBro...@SeeSig.Invalid> wrote:
> Execute a DDL query statement to change the field type, e.g.:
> ALTER TABLE MyTable ALTER COLUMN MyField DOUBLE;
>
> Introduction to DDL, and example:
> http://allenbrowne.com/func-DDL.html#ModifyFieldDDL
>
> List of the names to use in DDL, compared to the names in the Access
> interface:
> http://allenbrowne.com/ser-49.html
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users -http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Henrootje" <Hen...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > is there a way, using code, to change all of the numeric fields in a
> > database (preferrably in selected tables but not necessarily so) form
> > Long to DOuble Precision?

>
> > Greetings,

>
> > Henro Veijer- Tekst uit oorspronkelijk bericht niet weergeven -

>
> - Tekst uit oorspronkelijk bericht weergeven -


1

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
howto convert a table field from double precision into long integerwith a query Bart Microsoft Access Queries 1 14th Mar 2010 03:52 PM
Programmatically Change Double Data Type To Long Integer Qaspec Microsoft Access VBA Modules 8 5th Jan 2010 04:12 PM
precision double cronusf@gmail.com Microsoft C# .NET 1 17th Apr 2009 10:45 PM
Export truncate double precision number field frank Microsoft Access External Data 4 10th Jan 2007 05:36 PM
Change Precision of a Field Within a Table using Visual Basic Code =?Utf-8?B?U2FyYWg=?= Microsoft Access Form Coding 3 6th Mar 2006 06:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:26 PM.