[AccessD] Change Reports Caption From Code

A.D.Tejpal adtp at touchtelindia.net
Tue Jul 12 01:03:08 CDT 2005


Bob,

    Sample code as given below, in report's open event, should set its caption as per text box named TxtCaption (on form named F_Test).

    Private Sub Report_Open(Cancel As Integer)
        Me.Caption = Forms("F_Test")("TxtCaption")
    End Sub

Best wishes,
A.D.Tejpal
--------------

  ----- Original Message ----- 
  From: Bob Heygood 
  To: Access Developers discussion and problem solving 
  Sent: Monday, July 11, 2005 02:21
  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



More information about the AccessD mailing list