Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 
Glossary

New Entries Added Almost Daily!
Click here to get on our Mailing List

   

   Access    Excel    Word    Windows    HTML

 
MS Access

Naming Convention

Access Naming Convention

In this tutorial you will learn about a standard naming convention.

Rich has a simple naming convention he has followed for years. It is to put the first letter of the object after your name for the Object.

i.e. use T for a Table. So if you have a Table of Customers you would call it CustomerT.

Rich also follows the rule of keeping the names singular not plural. So if it is a Table of Customers you could call it CustomerT not CustomersT.

If you keep this consistent you will know then names when refering to them in code and elsewhere.

  • TableT
  • QueryQ
  • FormF
  • ReportR
  • MacroM
  • Module?

Rick Rost (Avatar) Rick's Thoughts: I do not use nor recommend any of the following, I just find them unnecessarily complicated for most small projects. Unless you're working in a team with other developers, don't bother with these.

There are other naming conventions out there. One you may have seen is the Leszynski naming convention.

Basic Object Tags
ObjectTag
Class modulecls
Formfrm
Form (dialog)fdlg
Form (menu)fmnu
Form (message)fmsg
Form (subform)fsub
Macromcr
Modulebas
Query (any type)qry
Query (append)qapp
Query (crosstab)qxtb
Query (data definition)qddl
Query (delete)qdel
Query (form filter)qflt
Query (lookup)qlkp
Query (make-table)qmak
Query (select)qry (or qsel)
Query (SQL pass-through)qspt
Query (union)quni
Query (update)qupd
Reportrpt
Report (subreport)rsub
Tabletbl
Table (attached dBASE)tdbf
Table (attached Excel)txls
Table (attached FoxPro)tfox
Table (attached Lotus)twks
Table (attached ODBC)todb
Table (attached Paradox)tpdx
Table (attached SQL Server)tsql
Table (attached text)ttxt
Table (lookup)tlkp
Pagespge

I've highlighted the most used ones.

VBA Variables
ObjectTag
Booleanbln
CommandBarcbr
Control (generic; useful when cycling through controls on a form or report)ctl
Currencycur
Databasedbs
Doubledbl
Formfrm
Integerint
Longlng
QueryDefqdf
Reportrpt
Singlesng
Snapshotsnp
Stringstr
Tabletbl
Type (user-defined)typ
Variantvar

Alex Hedley (Avatar) By: Alex Hedley


Click here to sign up for more FREE tips

 

You may want to read these articles from the 599CD News:

 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP