Syntax for modifying a forms Caption Property

S

SHIPP

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

Allen Browne

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top