Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   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

 

 

 

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
PCResale.NET
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
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/15/2025 6:21:34 AM. PLT: 1s