[AccessD] Change Reports Caption From Code

John Bartow john at winhaven.net
Sun Jul 10 23:03:49 CDT 2005


Bob,
Some basic code below for doing this.

Private Sub cmdCaptionTest_Click()
    DoCmd.OpenReport "rptCaptionTest", acPreview
    Application.Reports.rptCaptionTest.Caption = "TestCaptionSimple"
    Exit Sub
End Sub

This is A97 so it should work in newer versions although I haven't tested
it.

HTH
John B.

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood
Sent: Sunday, July 10, 2005 3:52 PM
To: Access Developers discussion and problem solving
Subject: [AccessD] Change Reports Caption From Code

Hello to the list,

I want to change the Caption property of a report from a form via code.
Can anyone help me?

thanks,,

bob



--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list