Form's Caption

S

Sammy

Is there a way to change the form caption to a variable?
I want to be able to have a pop-up form capture the name
on a form and place it in the caption bar of a form.


Is this possible or am I wasting my time?


Thanks for any input
 
D

Dirk Goldgar

Sammy said:
Is there a way to change the form caption to a variable?
I want to be able to have a pop-up form capture the name
on a form and place it in the caption bar of a form.


Is this possible or am I wasting my time?


Thanks for any input

Something like:

'----- start of example code -----
Private Sub Form_Open(Cancel As Integer)

On Error Resume Next 'in case not open
Me.Caption = Forms!MainForm!FullName

End Sub
'----- end of code -----
 
Top