D
Diane
I am enclosing the code because I am stuck. One of those
fields is being imported as a number and I want it to be text. This is the
code that I have written but I get the error message " wrong number of
arguments or invalid property assigned".
Dim dbCurr As DAO.Database
Dim tdefCurr As DAO.TableDef
Dim fldCurr As DAO.Field
Dim typCurr As DAO.DataTypeEnum
Set dbCurr = CurrentDb()
Set tdefCurr = dbCurr.TableDefs("New_Billing_Temp")
Set fldCurr = tdefCurr.Fields("Mobile Number")
Set typCurr = fldCurr.Type(adChar)
dbCurr.TableDefs.Refresh
Set tdefCurr = Nothing
Set dbCurr = Nothing
fields is being imported as a number and I want it to be text. This is the
code that I have written but I get the error message " wrong number of
arguments or invalid property assigned".
Dim dbCurr As DAO.Database
Dim tdefCurr As DAO.TableDef
Dim fldCurr As DAO.Field
Dim typCurr As DAO.DataTypeEnum
Set dbCurr = CurrentDb()
Set tdefCurr = dbCurr.TableDefs("New_Billing_Temp")
Set fldCurr = tdefCurr.Fields("Mobile Number")
Set typCurr = fldCurr.Type(adChar)
dbCurr.TableDefs.Refresh
Set tdefCurr = Nothing
Set dbCurr = Nothing