I marked this as a tip, because over time (hopefully) it will become a tip - I'm sure it will.
Any of you ever notice how your databases start relatively small, seem simple enough but after a few weeks and some coding the queries begin to pile up, the modules grow, and there seem to be more and more forms! Sometimes I have so many queries doing different things for different forms that I forget which does what (some of us aren't too hot at SQL coding - or we'd implement them into the form's class modules, but that's why we have Tek-Tips!) And I can get lost in all the names that my databses produce!
I'm posting this to offer some solutions to the overwhelming databases... I'll start.
This is taught in Access Designing 101, it's in all the books... yet I still work on databases that haven't been built this way. Mark every item with a unique name!
I can't tell you how many times this has saved me. If you let, for instance, a form's items have default names such as combo9 - you'll quickly forget which box is combo9 and which is combo12. A better suggestion is cmbAgenda for an agenda box. Labeling the beginning of each item is a life saver. Preceede the names of tables, forms, quiries, etc with something like this: tbl - table (example frmAgenda); qry - Query (example qryUpdateAgenda); frm - Form (example frmAgendaItems); mcr - Macro; mdl - Module; lbl - label; txt - text box; and so forth and so on. Keep broader items (such as form names) simple, and more specific items (such as those annoying text boxes), well, more specific.
Using this simple, relatively non-time consuming idea will save you tons of headache and code searching when the database has grown... and if you leave your company and a new employee takes on the task of managing your databases, it will save him/her a head-ache ... and it will save the company money (time = money).
Who's up next? We need some more ideas to make databses more efficient! -JPeters
These things take time...
Any of you ever notice how your databases start relatively small, seem simple enough but after a few weeks and some coding the queries begin to pile up, the modules grow, and there seem to be more and more forms! Sometimes I have so many queries doing different things for different forms that I forget which does what (some of us aren't too hot at SQL coding - or we'd implement them into the form's class modules, but that's why we have Tek-Tips!) And I can get lost in all the names that my databses produce!
I'm posting this to offer some solutions to the overwhelming databases... I'll start.
This is taught in Access Designing 101, it's in all the books... yet I still work on databases that haven't been built this way. Mark every item with a unique name!
I can't tell you how many times this has saved me. If you let, for instance, a form's items have default names such as combo9 - you'll quickly forget which box is combo9 and which is combo12. A better suggestion is cmbAgenda for an agenda box. Labeling the beginning of each item is a life saver. Preceede the names of tables, forms, quiries, etc with something like this: tbl - table (example frmAgenda); qry - Query (example qryUpdateAgenda); frm - Form (example frmAgendaItems); mcr - Macro; mdl - Module; lbl - label; txt - text box; and so forth and so on. Keep broader items (such as form names) simple, and more specific items (such as those annoying text boxes), well, more specific.
Using this simple, relatively non-time consuming idea will save you tons of headache and code searching when the database has grown... and if you leave your company and a new employee takes on the task of managing your databases, it will save him/her a head-ache ... and it will save the company money (time = money).
Who's up next? We need some more ideas to make databses more efficient! -JPeters
These things take time...