Changing Field Types

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm trying to change the field type of a table from text to numbers using
VBA code...
Any ideas...?? Rgds...Chris
 
Try executing a DDL query statement, e.g.:

strSql = "ALTER TABLE Table1 ALTER COLUMN Field1 DOUBLE;"
dbEngine(0)(0).Execute strSql, dbFailOnError

For a list of the names to use in DDL and how they match the field types in
Access, see:
Field type names (JET, DDL, DAO and ADOX)
at:
http://members.iinet.net.au/~allenbrowne/ser-49.html
 

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

Back
Top