Need the correct syntax to set the Format property to “>” for BE, table and field
strBE=F:AppsAccess2kClerkTlaClerk.md
strTbl=tbl_DL_Breed
strFld=strBreedCode
Thanks, John
Public Sub SetFormat(strBE As String, strTbl As String, strFld As String) Dim dbs As DAO.Database Dim tdf As DAO.TableDef Dim fld As DAO.Field On Error GoTo ErrHandler Set dbs = DBEngine.OpenDatabase(strBE) Set tdf = dbs.TableDefs(strTbl) Set fld = tdf.Fields(strFld) ??? fld.Properties.Append "Format", ">" ExitHandler: On Error Resume Next Set fld = Nothing Set tdf = Nothing dbs.Close Set dbs = Nothing Exit Sub ErrHandler: MsgBox Err & ": " & Err.Description, vbExclamation Resume ExitHandler End Sub