Re: Question about a default table or method

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Tina's "miscellaneous" Table has worked well for me, too. This is one case in which having dozens of unrelated fields in a record makes a lot of sense. I do try to give the fields suggestive names (not "Value1", "Value2", etc.) and of course I add comments (in Table Design View) to provide some explanation of what the datum means. (Those comments are not just for someone else's benefit -- it also helps me, six months or more later.)

  -- Vincent Johns <vjohns@xxxxxxxxxxxxxxxxxx>
  Please feel free to quote anything I say here.

tina wrote:

[...]
if this is what you're talking about, then read on for the solution i use:
i sometimes find myself with a few "miscellaneous" values that are used in
various places in my database but don't really "belong" in any of my data
tables. when that happens, i create a miscellaneous table, with *only one
record* (if you find that you need multiple records of one value, then
that's a legitimate table that should be built as such), and a separate
field for each value that i need to store. the table is not linked to any
other table, and the fields in the table usually don't have anything to do
with each other.

having built and populated tblMisc, you can retrieve a particular value
wherever you need it in your database, with a simple DLookup() function -
remember that the table has only one record in it, so all you need to do is
look up the field holding the value you're after, as

DLookup("ThisField", "tblMisc")

hth
.



Relevant Pages

  • Re: Question about a default table or method
    ... > case in which having dozens of unrelated fields in a record makes a lot ... well, i don't know about *dozens* of fields in a tblMisc, LOL. ... company (that the db belongs to) for use in report headers - so it can be ... >> that's a legitimate table that should be built as such), ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Out of Response Time Calculation
    ... I have attempted to build the database as you describe but I must be doing ... I have built the tables as you described, I have then built a form with the ... > On your Form you would have textboxes for TimeOpened and TimeClosed, ... > and for TimeOpenedMet, use a Control Source ...
    (microsoft.public.access.forms)
  • Re: Command Button Wizard
    ... make sure the database is in a trusted location via: ... > built with the Wizard all work. ... > settings) and the command buttons built with the Wizard will not work - ...
    (microsoft.public.access.formscoding)
  • Re: OT: why are LAMP sites slow?
    ... > class of database-backed web sites built using those components. ... > painfully slow even using seriously powerful server hardware. ... and compounded by probably an unoptimized database. ... don't want to start flame wars here about PHP; I use PHP to build client ...
    (comp.lang.python)
  • Re: Access help!!!!
    ... Over 1000 Access users have come to me for help. ... Remember that a lone man built the Ark. ... > database for a bicycle shop. ... I have no knowledge of Microsoft Access. ...
    (microsoft.public.access.tablesdbdesign)