Lookup fields obfuscate what is actually stored in the table, create
spurious indexes, and introduce other problems as discussed at:
http://www.mvps.org/access/lookupfields.htm
It is not the Display Control that causes the problems, so use it as you
wish.
Similary, the Format property of a field in the table is not evil. Not only
does it show in a query, but the controls on a new form/report inherit these
properties. If helps you then use it.
The problems I am aware of with the Format property are:
1. Don't use on Memo fields: it truncates them to 255 characters.
2. Don't use to force the display of text to upper/lower case. The data
doesn't match if you use case-sensitive searches, and users think the data
is wrong when exported.
3. Don't set to Short Date to try to hide the time component in date fields,
typically because =Now() was used as Default Value when it should have been
=Date().
4. It can make it more involved to modify a back end if you want to change
the formatting in an update of a database distributed to many locations
(i.e. where changing the front end is not enough).
AFAIK, the Format property does not contribute to corruption. For a list of
things that do, see:
Preventing Corruption
at:
http://members.iinet.net.au/~allenbrowne/ser-25.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"deko" <www.clearpointsystems.com@use_contact_form.com> wrote in message
news:sk*****************@newssvr14.news.prodigy.co m...
I've heard it's best not to have any formatting specified for Table fields
(except perhaps Currency), and instead set the formatting in the Form or
Report. But what about Yes/No fields? When I create a Yes/No field in a
Table the default format is "Yes/No". If I clear or change the Format
property in the General Tab (and keep the default "Checkbox" in the Lookup
tab), the field still looks the same when I open the table in Datasheet
view.
I have all kinds of queries and code that get and set the value of these
Yes/No fields using "-1" for True and "0" for False. Does it make any
difference what the Table Format setting is? What about the Display
Control
setting on the Lookup tab?
I recently experienced an unnerving error that was apparently caused by an
aberrant Yes/No field:
"Error Number 3343: Unrecognized database format
'C:\MyDirectory\MyAccess2003.mdb'.
I'm still in search of an explanation and wondering if the Table
formatting
could be an issue.
Thanks in advance.