[AccessD] Set a field data type via code

Mitsules, Mark Mark.Mitsules at ngc.com
Tue Oct 21 15:44:19 CDT 2003


Sorry Gina, I didn't mean to imply that it came from our archives.  That
post was found here: http://dbforums.com/t876014.html during a Google search
over the entire web.


Mark


-----Original Message-----
From: Gina Hoopes [mailto:hoopesg at hotmail.com] 
Sent: Tuesday, October 21, 2003 4:36 PM
To: AccessD at databaseadvisors.com
Subject: RE: [AccessD] Set a field data type via code


Thank you, Mark.  I must have used the wrong words in my archive search.  I 
think the solution offered in Van's post is the way I'll have to go.

Gina

-----Original Message-----
From: Mitsules, Mark [mailto:Mark.Mitsules at ngc.com]
Sent: Tuesday, October 21, 2003 3:27 PM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Set a field data type via code


>Is it possible to use code (cbf) to change a field's data type, in the
table itself, from number to text?



I found this post...hope it helps (and is correct...).


Mark

-----------------------------------------
From: Van T. Dinh
Date: 08-07-03 15:01
Subject: Re: Access field.type change
-----------------------------------------
IIRC, even when you change the Field Type through the GUI, Access / Jet 
actually creates a new Field, updates the new Field with converted values 
from the old Field, delete old Field and then re-name the new Field to the 
old name.

Thus if you want to change the Field Type by code, you will have to follow 
the same process.

--
HTH
Van T. Dinh
MVP (Access)
-----------------------------------------

_________________________________________________________________
Add MSN 8 Internet Software to your current Internet access and enjoy 
patented spam control and more.  Get two months FREE!     
http://join.msn.com/?page=dept/byoa

_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


More information about the AccessD mailing list