Hi,
I am doing a major overhaul on a database, deleting old, unused fields and they also want to change the data properties of the zipcode field. The field was formmated as text with a field size of 5. They want it to be a 10 digit field with the dash now (11111-1111). While I am deleting the old fields is there a way I can update the zip code field with the same module? I can't find anything in research about updating the properties and adding an input mask of an existing field. The code I already have is somthing like this:
Dim db As Database
Dim td As TableDef
Set db = CurrentDb
Set td = db.TableDefs("tbl Former_Employees")
td.Fields.Delete "PULAMT"
Also, if I change the data type for the field, the records already in the database do not have the 10 digit zip code until someone goes into the form and updates them? Will this cause a problem?
Thanks for your help
LIsa
I am doing a major overhaul on a database, deleting old, unused fields and they also want to change the data properties of the zipcode field. The field was formmated as text with a field size of 5. They want it to be a 10 digit field with the dash now (11111-1111). While I am deleting the old fields is there a way I can update the zip code field with the same module? I can't find anything in research about updating the properties and adding an input mask of an existing field. The code I already have is somthing like this:
Dim db As Database
Dim td As TableDef
Set db = CurrentDb
Set td = db.TableDefs("tbl Former_Employees")
td.Fields.Delete "PULAMT"
Also, if I change the data type for the field, the records already in the database do not have the 10 digit zip code until someone goes into the form and updates them? Will this cause a problem?
Thanks for your help
LIsa