Caption -- change using VBA

lmcc007

Registered User.
Local time
Today, 14:50
Joined
Nov 10, 2007
Messages
635
Can you change the Caption property of a form while opening the form from another form? I know Me.Caption works.

I am trying:

Forms!fdlgEventNote!Caption​

but get this error message:

Error Number: 2465

Description: Microsoft Office Access can't findthe field "Caption" referred toin your expression.

I tried putting Form.Caption and then I tried fdlgEventNote.Caption, but it is not working.

Can the caption be changed like this?
 
Code:
Forms!fdlgEventNote[COLOR="DarkRed"][B].[/B][/COLOR]Caption
 
Code:
Forms!fdlgEventNote[COLOR="DarkRed"][B].[/B][/COLOR]Caption

Ahh... always that little something you put in or forgot to take out.

Thanks, it works!
 
Remember to use a period when accessing a PROPERTY or METHOD.
 

Users who are viewing this thread

Back
Top Bottom