Newbie coding help!!

  • Thread starter Thread starter Sok Hong
  • Start date Start date
S

Sok Hong

Hello, a few days ago I received some help on coding. It
was regarding entering text messages if certain check box
was selected. The helper gave me this as a code.

Sub chkBilling_AfterUpdate()

If Me!chkBilling = True Then
Me!FieldYouWantToFillName = "Billing"
End If

EndSub

Can some one tell me what Me! is supposed to represent? I
am new to VBA so I wasn't sure what that was supposed to
be. Thanks.
 
"Me" is a keyword that represents the form which contains the controls
"chkBilling" and "FieldYouWantToFillName".

If the forms Name property i set to "Form1" then the following are
interchangeable:

Form1.chkBilling = True
Me.chkBilling = True

P
 
Back
Top