PDA

View Full Version : Problems with acCmdSizeToFitForm in Access 2013



chrisbendrey
04-20-2015, 06:09 AM
I have an Access 2002 mdb that I've upgraded to access 2013.

Each form calls a StdFormOpen function in a module. This function calls the DoCmd.RunCommand acCmdSizeToFitForm and obviously used to run fine.

Now, however i get the following error:

Run-time error '2046'
The command or action 'SizeToFitForm' isn't available now

I've tried moving the command into the forms' Form_Current(), Form_Activate(), Form_Load() and Form_Open() events, all with the same error message.

I'm running Access 2013 on Windows 8 x64. I hope someone can shed some light on my issue,

Thanks,

Chris

mancubus
05-06-2015, 05:53 AM
see if this helps...

https://support.microsoft.com/en-us/kb/244695