Changing a Data Type within a table

Carly

Registered User.
Local time
Today, 17:12
Joined
Apr 16, 2003
Messages
86
Is there anyway in VBA that I can open a table and then change the data type of a field from Number to text and close the table again?

I have got the following for the opening & closing the table but it's the data type bit which I am missing:

Docmd.OpenTable "tbl 1c Final Product Sales By Qty", acViewDesign, acEdit
..........
Docmd.Close actable "tbl 1c Final Product Sales By Qty", acSaveYes

Can this be done?

Regards
Carly
 
you can use the sql command
ALTER TABLE


but I'm not sure if access supports it......?
 

Users who are viewing this thread

Back
Top Bottom