Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
 
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

 

Check out these other pages that may be of interest to you:

12/1/2022Load Faster
11/29/2022Date Buttons
11/29/2022Change Date Field
11/28/2022Top X
11/27/2022System Settings
11/25/2022Application Title
11/24/2022Full HTML Editor in Access
11/24/2022Change Database Title
11/23/2022Other Names
11/21/2022Check Icon File
 

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
amicron@gmail.com
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn