Learn Access 2003 VBA with The Smart Method
284
www.LearnAccessVBA.com
4: Access object naming
4-1
Prefix objects with the following letters in lower case:
Object
Prefix
Table
No prefix
Query
qry
Form
frm
Report
rpt
Macro
mcr
Module
mod
Example: frmFilm.
5: Form control naming
5-1
Use generally accepted three-letter standard prefixes for all form controls. Some of the more
common prefixes are:
Prefix
Object Type
Example
cbo Combo Box and Drop Down List
Box
cboEnglish
chk Checkbox
chkReadOnly
cmd Command Button
cmdOK
ctr Control (when specific type is
unknown)
ctrCurrent
dat Data control
datFilm
dir Directory list box
dirSource
dlg Common Dialog Control
dlgFileOpen
frm Form
frmEntry
fra Frame
fraStyle
img Image
imgIcon
lbl Label
lblHelpMessage
lin Line
linVertical
lst List Box
lstPolicyCodes
mnu Menu
mnuFileOpen
opt Option Button
optRed