G
Guest
I am trying to give the users the facitility to change the datatype behind a
field via a form using the following code:
Private Sub ChangeDataType(Fld As String, FldType As Integer)
Dim db As Database
Dim tbl As TableDef
Set db = DBEngine(0)(0)
Set tbl = db.TableDefs("TblUserFieldEmployeeDetails")
tbl(Fld).Type = FldType
Set db = Nothing
Set tbl = Nothing
End Sub
The problem is that the datatype is read only. Is there another or better
way of ding this?
Many thanks
field via a form using the following code:
Private Sub ChangeDataType(Fld As String, FldType As Integer)
Dim db As Database
Dim tbl As TableDef
Set db = DBEngine(0)(0)
Set tbl = db.TableDefs("TblUserFieldEmployeeDetails")
tbl(Fld).Type = FldType
Set db = Nothing
Set tbl = Nothing
End Sub
The problem is that the datatype is read only. Is there another or better
way of ding this?
Many thanks