Run the following DDL:
ALTER TABLE Employees ALTER COLUMN Emplcode Text(6)
If your database isn't split, you could use:
CurrentDb.Execute "ALTER TABLE Employees ALTER COLUMN Emplcode Text(6)",
dbFailOnError
If your database is split, you need to run it against the backend, not the
current database:
Dim dbBackend As DAO.Database
Dim strBackend As String
Dim strDDL As String
strBackend = "full path to backend database"
strDDL = "ALTER TABLE Employees ALTER COLUMN Emplcode Text(6)"
Set dbBackend = OpenDatabase(strBackend)
dbBackend.Execute strDDL, dbFailOnError
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Scott Burke" <(E-Mail Removed)> wrote in message
news:E93AC641-DE79-4099-83AF-(E-Mail Removed)...
>I have a table "Employees" with a field "Emplcode".
>
> Can I change the Field size of "Emplcode" form 3 to 6 with VBA?
> Without loosing existing information!
>
> Scott Burke