Scott,
Sorry for the 2 week delay, I have had other things going on!
It is not quite working there yet. I will re-cap the current situation instead of following through the threads above.
My modUser module currently includes:
Public Sub ResizeApp(intwidth As integer, intheight As integer)
Application.RunCommand (acCmdAppRestore)
SetWindowPos Application.hWndAccessApp, 0, 0, 0, intheight, intwidth, 0
End Sub
The active form 'frmCreateNew" needs code to allow its parent window to display the form and the separate table 'ShowAllocNos' alongside it.
The code in frmCreateNew calculates values for:
WidthOfCreateNew
WidthOfTable
These two width values are then added together to give a value for the parent window:
BigWindowWidth = WidthOfCreateNew + WidthOfTable
I then call up the ResizeApp using:
DoCmd = ResizeApp(BigWindowWidth, 6000)
but it gives an error message 'Expected Function or Variable'.
What is going wrong here?
Once I have got the width corrected then I will correct the height in the same manner.
Thanks for your patience.
Regards
Barry GC