|
|
Organize Code and Reference Info
Here is a tip to organize code or SQL or instructions or links (etc) that you write or get from other sources:
[edit] How to Save to NotepadTo put NotePad on your Start button:
[edit] Sample File NamesFor example, here might be a few of your filenames:
Both FindRecord and NotInList need to be changed for the circumstances they are being used, but at least you have shell code to build around. In my FindRecord file, I have code that goes behind the form at the top since that is easiest to understand and what I most often give to other people. I also have a generic function that takes parameters and goes into a standard module that is below the first procedure. I also put the instructions to give the user in the text file. Here are some prefix examples:
[edit] Using Filename to SearchIf you are not sure how you might search, use the filename to specify multiple search terms.
(This might be instructions on creating a Dates table and code to create date records for 20 or so years, If you open one of the text files to give the information to someone else, after you submit the post and it renders on the screen, copy the post link, subject, and date to the top of your text file. If the post is on UtterAccess, copy the URL (Uniform Resource Locator) from the AddressBar of your browser window and truncate all the information after the number.
When someone posts code or SQL or a link that you know will be a good reference, make a note of (1) the link (2) a title (3) who wrote it and, once again, save text files.
[edit] Using Windows Search FacilityWhen you want to find your help, use the Windows search facility. Right-click on the top level directory in Windows Explorer (or My Computer) and choose --> Search All or part of the filename --> *print*_dat* to find --> code_PrinterEscapeSequence_datAdrenaline.txt With the title and a link at the top of the document, you can just copy and paste for others. For example,
If you know you have a file that covers the information you are looking for but you cannot remember your search terms, search 'A Word or phrase in the file' -- and then when you find it, rename the file to include what you originally used to try to find it by searching on the name. If a site has some good code (two examples are mvps.org and AllenBrowne.com, I save things like this:
The link is there too, but if you also copy the code for yourself, it is convenient to name it starting with 'code_' I also have a document with basic links that I give out often Access Basics Tutorial and Allen Browne's reserved word list -- but I keep this short or it would be faster to use the Windows search. You can also keep all your Access code in a database and reference it in all your applications ... but I like using TXT files because not everything is code. You might have code/info for other applications as well, like Excel, Word, and PowerPoint. Create folders for each application and put the text files under the application folder. Within an application folder, you may create several more folders under them (such as code written for specific versions, or stuff written by other UA members) -- and when you search, start at the top level directory for that application. The TXT file thing works real well for me (and I update them) so, like an engineer, I think, why fix it if it isn't broken? Hope this information helps you get organized This page was originally ported from the UtterAccess Forums. It is based heavily or in part on a post by strive4peace.
|
| This page was last modified 04:50, 5 February 2012. This page has been accessed 1,825 times. Disclaimers |