I have the following code that runs when Db opens:
For i = 1 To CommandBars.Count
CommandBars(i).Enabled = False
Next i
It hides all the toolbars. Now, when I open a report everything is fine with it - I have "min, max, close" buttons on its window. However, when I maximize it - it maximizes to the point that those buttons dissapear. Therefore then I cannot close the report unless with the shortcut Alt+F4.
Why does it maximize that far that the window buttons dissapear? I posted the code above because I think it may be affecting the maximize somehow.
For i = 1 To CommandBars.Count
CommandBars(i).Enabled = False
Next i
It hides all the toolbars. Now, when I open a report everything is fine with it - I have "min, max, close" buttons on its window. However, when I maximize it - it maximizes to the point that those buttons dissapear. Therefore then I cannot close the report unless with the shortcut Alt+F4.
Why does it maximize that far that the window buttons dissapear? I posted the code above because I think it may be affecting the maximize somehow.