Alter field type using VBA or similar

N

Neil

I need to change the data type on a BE set of tables that I no longer have
access to directly.

The table in the backend contains an unused field currently set as a
currency field - I now need to change this to a text field.

Can I do this using VBA, or something similar or do I need to get the BE
sent to me (which I@d rather not do?)

Thanks in advance.

Neil
 
A

Alex Dybenko

Hi,
you can do this in few steps, just make a proc and ask to run it once:
create a new text field in your table (createField method)
if necessary - copy data from old field to new one using update query
delete old field fields.Delete
rename new field to old one fields("oldname").Name ="newname"


--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
 

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