Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete property of a field 1

Status
Not open for further replies.

samotek

Technical User
May 9, 2005
197
BG

I am renaming the fields in a table:
tdf.Fields("F1").Name = "Students"
My question is, how can i change the property of the field, since it is a text,and i want to make it number.
 
Hi
I do not think you can, with TableDefs. If certain conditions are met, you can use Alter Table:
[tt]SQL = "ALTER TABLE table1 ALTER COLUMN Field1 INT"
DoCmd.RunSQL SQL[/tt]

However, from some of your questions, it looks like it might be easier for you to run an append query programtically. [ponder]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top