Alter Table to change Field Datatype

G

Guest

I am amending a field's datatype using the following:

Set db = CurrentDb()
strSQL = "ALTER TABLE TblUserFieldEmployeeDetails ALTER COLUMN " &
fldName & " " & strFieldType
db.Execute strSQL

The datatype has been changed immediately and successfully when I look at
the table in desgin view, but none of the forms will pick up the new datatype
without completely closing the database and reopening it.

Is there a way to reload/refresh the tables without having to exit the
databse?

Many thanks
 

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