A family of Microsoft relational database management systems designed for ease of use.
Use the On Current event of the form and use Me.Caption
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to change the form caption dynamically based on the record selected. I have a project database and I want the form caption to show the current project. I've tried this in the after update:
Private Sub Form_AfterUpdate()
Me.Form.Caption = Me.ProjectName
End Sub
ProjectName is the name of the filed I want to change the caption to. However, this is not working at all.
Any help is greatly appreciated.
Using:
Microsoft Access 2007
Windows 7
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Use the On Current event of the form and use Me.Caption
Yeah, I was about to test it, because I was sure that should work.
Glad you got it.
Scott,
I figured it out. I forgot to enable content when I initially opened the database. I shut it down and opened it back up, enabling content, and it worked.
Thanks for the help and the response.
v/r
Scott,
I tried that too and it didn't work.
Private Sub Form_Current()
Me.Caption = Me.ProjectName
End Sub