Move a Chart to a middle of a Preview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ShujaUmer
    New Member
    • Mar 2007
    • 5

    Move a Chart to a middle of a Preview

    Dear Experts,

    I have been trying to get the Chart in the middle of the report (horizontally) when opened as AcVeiwPreview but in Vein. I have tried expression.Move method, tried VBA with control properties (WIdth, and Left) but in vein. Any help is appreciated.
  • jimatqsi
    Moderator Top Contributor
    • Oct 2006
    • 1293

    #2
    Where are you putting your code? Normally you have to put your code in the Format event to effect changes in position and visibility.

    Jim

    Comment

    • ShujaUmer
      New Member
      • Mar 2007
      • 5

      #3
      Originally posted by jimatqsi
      Where are you putting your code? Normally you have to put your code in the Format event to effect changes in position and visibility.

      Jim
      Thanks for the response and apologies for the late coming. I am putting the code in the load event of the report. In the same event I have successfully brought a label at the top middle of the report. I will give a try to put the code at format event and let you know.

      Comment

      • ShujaUmer
        New Member
        • Mar 2007
        • 5

        #4
        I couldn't achieve this defining it in onFormat event. Please help.. anybody!!
        I am a newbie in VBA programming specific to Access.

        Thanks

        Comment

        • zmbd
          Recognized Expert Moderator Expert
          • Mar 2012
          • 5501

          #5
          please post your code...
          please remember to format the code by selecting the text and then clicking in the [code/] format button.

          Comment

          Working...