dbTalk Databases Forums  

Command to change the data type of a field in a table

comp.databases.ms-access comp.databases.ms-access


Discuss Command to change the data type of a field in a table in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
hpaisawala@gmail.com
 
Posts: n/a

Default Command to change the data type of a field in a table - 09-01-2006 , 05:06 AM






Hiya,

Is it possible to create a command button on a form and code it such
that it goes to a particular field and changes the data type property
of that filed from Auto Number to Number.

Many Thanks and Kind Regards,
Hussain


Reply With Quote
  #2  
Old   
Larry Linson
 
Posts: n/a

Default Re: Command to change the data type of a field in a table - 09-01-2006 , 12:23 PM






<hpaisawala (AT) gmail (DOT) com> wrote

Quote:
Is it possible to create a command
button on a form and code it such
that it goes to a particular field and
changes the data type property of that
filed from Auto Number to Number.
What you are trying to accomplish that you could not do by manually
modifying the Table in Design View?

Larry Linson
Microsoft Access MVP





Reply With Quote
  #3  
Old   
Hussain
 
Posts: n/a

Default Re: Command to change the data type of a field in a table - 09-04-2006 , 04:49 AM




Larry Linson wrote:
Quote:
hpaisawala (AT) gmail (DOT) com> wrote

Is it possible to create a command
button on a form and code it such
that it goes to a particular field and
changes the data type property of that
filed from Auto Number to Number.

What you are trying to accomplish that you could not do by manually
modifying the Table in Design View?

Larry Linson
Microsoft Access MVP
Hiya Thanks for the reply.

No, the end user has no experience of using the access system and so
wouldn't know how to do it in design view. I want him to do everything
from a form. Also, it takes longer to do that.

Actually, if I explain you what I am trying to do, it might make it
easier for you to guide me. Basically, I have 4 tables from which I
filter data and then use append queries to use data from all four
tables and create new tables with various keys. However, to create
these new tables I have to put the data in the 4 tables and then
individually go in the design view of all four tables and change the
data type from autonumber to number because access doesnot allow the
new tables to have more than 1 autonumber filed.



Reply With Quote
  #4  
Old   
Hussain
 
Posts: n/a

Default Re: Command to change the data type of a field in a table - 09-04-2006 , 05:42 AM




Hussain wrote:

Quote:
Larry Linson wrote:
hpaisawala (AT) gmail (DOT) com> wrote

Is it possible to create a command
button on a form and code it such
that it goes to a particular field and
changes the data type property of that
filed from Auto Number to Number.

What you are trying to accomplish that you could not do by manually
modifying the Table in Design View?

Larry Linson
Microsoft Access MVP

Hiya Thanks for the reply.

No, the end user has no experience of using the access system and so
wouldn't know how to do it in design view. I want him to do everything
from a form. Also, it takes longer to do that.

Actually, if I explain you what I am trying to do, it might make it
easier for you to guide me. Basically, I have 4 tables from which I
filter data and then use append queries to use data from all four
tables and create new tables with various keys. However, to create
these new tables I have to put the data in the 4 tables and then
individually go in the design view of all four tables and change the
data type from autonumber to number because access doesnot allow the
new tables to have more than 1 autonumber filed.
Thanks all who tried answering this question. I have found the solution
at:

http://support.microsoft.com/?kbid=210304

Many Thanks.



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.