Syntax for modifying a forms Caption Property

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Could somebody please tell me what is the correct VBA syntax for modifying a forms caption property. Thanks in advance.
 
Me.Caption.

Example, for the Current event of the form:

Private Sub Form_Current
If Me.NewRecord Then
Me.Caption = "Client: new client"
Else
Me.Caption = "Client " & Me.FirstName & " " & Me.Surname
End If
End Sub

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

SHIPP said:
Could somebody please tell me what is the correct VBA syntax for modifying
a forms caption property. Thanks in advance.
 
Back
Top