You may have additional things to do, but this is the core
idea:
Dim db As Database
Dim tdf As TableDef
Dim fld As Field
Dim prp As Property
Set db = CurrentDb()
Set tdf = db.TableDefs("zJunk")
Set fld = tdf.Fields!FieldName
Set prp = fld.CreateProperty("DisplayControl", _
dbInteger, acCheckBox)
fld.Properties.Append prp
Set prp = Nothing
Set fld = Nothing
Set tdf = Nothing
Set db = Nothing
I have done those other things but this is what I couldn't find!
Set prp = fld.CreateProperty("DisplayControl", dbInteger, acCheckBox)
Thank you!
Ross
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.