Change Data Type in Code

A

Alex

Using VBA, how can I change the data type of a field from number to text.

thanks for the hel

Alex
 
A

Allen Browne

Execute a DLL query statement like this:

dbEngine(0)(0).Execute "ALTER TABLE MyTable ALTER COLUMN MyField TEXT(30);",
dbFailOnError
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top