Form caption (1 Viewer)

rhay

Registered User.
Local time
Today, 20:50
Joined
Mar 30, 2001
Messages
24
Is there a way in the Form Caption when open it will display the name ( a field in the form)of the current record being viewed?

Thanks,

Robert
 

Jack Cowley

Registered User.
Local time
Today, 20:50
Joined
Aug 7, 2000
Messages
2,639
In the On Current event of the form:

If Me.NewRecord Then
Me.Caption = "New Record"
Else
Me.Caption = Me.FieldWithDataYouWantToDisplay
End if
 

rhay

Registered User.
Local time
Today, 20:50
Joined
Mar 30, 2001
Messages
24
Thanks Jack,

It worked great!

Robert
 

Users who are viewing this thread

Top Bottom