Charlotte Foust
charlotte.foust at gmail.com
Mon May 9 23:39:17 CDT 2011
Why are you trying to write code using a property that doesn't apply to the generic object? If you wait until you set the control object to a particular kind of control that has a Top property, your code will work. Charlotte Foust On Mon, May 9, 2011 at 3:40 PM, William Benson (VBACreations.Com) <vbacreations at gmail.com> wrote: > I have been asked to upgrade a database which I wrote a lot of code for in > Access 2003, to Access 2010. I thought this ought to be "no problem." Well, > it kinda is. > > One thing I am running into is that when I declare Ctrl as a Control write > code such as > > Ctrl.Top (there is no "Top" property associated with every single > Control) Access 2010 VBA is now very unhelpfully writing > Ctrl.TopPadding the moment I type a space after the letter "p". I went back > to 2003 VBA and the VBE does not do that in the prior version. > > Is this a setting that can be banished? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com >